Hi all,
I've got a Field in a form with a bunch of text in. The field is set to:
Usable
Not Editable
Not Underline
Not Single Line
Not Dynamic Size
Not Left Justified
It appears fine and I can set the text in it no problem with FldSetTextPtr.
I call FldSetMaxChars with the length of the string that I am going to
display and I call FldRecalculateField after this so it all updates etc. The
problem comes when I select some of the text with the stylus, the seleted
text appears shifted one character width to the left of the original text,
meaning that the last character of each line is displayed twice. When I
unselect the text it goes back, however the first character (which is not
covered by the new unselected text) remains visible.
This only happens when the field is right justified, when it's left
justified everything is fine.
One other thing, the last line of the text does not have this problem
*unless* I terminate it with a new line as well. I am using \n for my
newline, is this wrong (have been stung by this on UNIX/DOS before)? I have
tried \r\n and \n\r and a bunch of other things. Does anyone know what's
going on, and how to stop it?
Cheers,
Idries
Idries Hamadi
Programmer
IG
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/