newline (contd.)

Postby Mikael on Thu Oct 02, 2003 11:17 am

Sadly I couldn't get it to work in the way you suggested Joe. Don't know if it's due to the fact that I using text() instead of puts()-
It works fine with puts(). I found another way by combining text(), substr() and GETTSTR(), which is a little tricky, but works OK.

Thanks,

Mikael
Mikael
 
Posts: 156
Joined: Sun Apr 13, 2003 9:19 am
Location: Denmark

Postby jstadolnik on Thu Oct 02, 2003 12:44 pm

The text() function does not handle new line characters. More precisely the PalmOS text drawing functions don't handle new line characters.

Check out the PToolboxLib's textbox() function. It should do exactly what you want (and perhaps a bit more:)).

Joe

The PToolboxLib guy.
http://www.geocities.com/retro_01775/PToolboxLib.htm
jstadolnik
 
Posts: 1741
Joined: Wed Dec 06, 2000 3:34 am
Location: USA


Return to PocketC for Palm OS KB

Who is online

Users browsing this forum: No registered users and 1 guest

cron