Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » Add line to pop_up box
Add line to pop_up box [message #32120] Mon, 25 April 2011 22:57 Go to next message
nlneilson is currently offline  nlneilson
Messages: 644
Registered: January 2010
Location: U.S. California. Mojave &...
Contributor
For a pop_up box like the Help->about
	PromptOK("[A5 uWord]&Using [*^www://upp.sf.net^ Ultimate`+`+] technology.");


How do you add another line of text?
Re: Add line to pop_up box [message #32121 is a reply to message #32120] Tue, 26 April 2011 01:55 Go to previous messageGo to next message
Lance is currently offline  Lance
Messages: 526
Registered: March 2007
Contributor
Maybe you can use the RTF editor provided in sample programs, eg., blue bar to create the text you intended to display and save the file somewhere. There rename the file to abc.txt (on windows) and view it as ASCII text, and copy the text to your program.

Sorry I don't know much about Upp RTF format yet. Here is the output of my experiment:

[ $$0,0#00000000000000000000000000000000:Default]
[{_} 
[s0; [5 uWord]&]
[s0; Using [*^www`:`/`/upp`.sf`.net^ Ultimate`+`+] technology.&]
[s0; Which excels!]
Re: Add line to pop_up box [message #32123 is a reply to message #32121] Tue, 26 April 2011 03:48 Go to previous messageGo to next message
nlneilson is currently offline  nlneilson
Messages: 644
Registered: January 2010
Location: U.S. California. Mojave &...
Contributor
Thanks Lance but I was looking for an easy and understandable way of doing it.

Usually "\n" will create a new line.
I have no idea what the square brackets are for in this context.

	void About()
	{
	PromptOK("[A5 uWord]&Using [*^www://upp.sf.net^ Ultimate`+`+] technology.")& + "[2 Which excels!]");

	}


Just tinkering found that & is for a new line.
Without the 2 or a space it throws an error.

What should have been 10 minutes with an example turned into a couple hours.

Neil
Re: Add line to pop_up box [message #32124 is a reply to message #32123] Tue, 26 April 2011 03:55 Go to previous messageGo to next message
Lance is currently offline  Lance
Messages: 526
Registered: March 2007
Contributor
That you'll have to familiarize yourself with the QTF grammer:

Here

Or more specific:
Basic QTF codes






_ Hard-space - space that cannot be divided at the end of line.

& New paragraph.

-| Tabulator

@$hex; Unicode character as hexadecimal number.


I am in more or less the same stage in learning U++ as are you. There are too much too learn and sometimes quick and relevant pointer is not readily available.
Re: Add line to pop_up box [message #32125 is a reply to message #32124] Tue, 26 April 2011 03:56 Go to previous messageGo to next message
Lance is currently offline  Lance
Messages: 526
Registered: March 2007
Contributor
Smile false. You're more advanced than me.
Re: Add line to pop_up box [message #32126 is a reply to message #32125] Tue, 26 April 2011 04:12 Go to previous message
nlneilson is currently offline  nlneilson
Messages: 644
Registered: January 2010
Location: U.S. California. Mojave &...
Contributor
Lance wrote on Tue, 26 April 2011 03:56

Smile false. You're more advanced than me.

With U++ I am not more advanced.
Previous Topic: Tell me more about U++ please.
Next Topic: How to make .usc files ?
Goto Forum:
  


Current Time: Sat Apr 27 12:19:03 CEST 2024

Total time taken to generate the page: 0.02628 seconds