Call FldRecalculateField() after FldSetTextPtr().
FldSetTextHandle() does it automatically.
Regards,
Miro Pomsar
David Linker wrote:
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/