I seem to recall a similar problem, but can't remember the exact cause.
I can tell you that my app works correctly with newlines in the text,
but I always put it in a dynamic memory block and display it with
FldSetTextHandle. Maybe this is what fixed my original problem.
Doug Gordon
Subject: Newlines don't work with FldSetTextPtr
From: David Linker <[EMAIL PROTECTED]>
Date: Sat, 12 Jan 2008 08:16:51 -0800
X-Message-Number: 2
I can't create a newline when I use FldSetTextPtr, and can't figure
out why.
If I use the following code:
char text[] = "Return right here:\nRight?";
FldSetTextPtr(f,text);
There is a little rectangle in place of the newline when I see this
on the device.
If I put it in the resource file like this:
STRING ID 1000 "Return right here:\nRight?"
and then have the following code:
h = DmGet1Resource('tSTR',1000);
FldSetTextHandle(f,h);
It appears correctly, with a newline right after colon.
I have done a hexdump of both versions, and there is 0x0A at the
right place in both.
Why doesn't the first version work?
Using:
m68k-palmos-gcc version 2.95.3-kgpd
pilrc version 3.1
Any tips appreciated.
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/