I need to display a real CR (cursor to beginning of line) character in a
field. This field would need to have a scroll bar because the possible
amount of text to display. I would have all the text ready to display
before displaying it. What do you think would be the easiest way to do
this? Should I use a field or a write my own display gadget to show the
text?
Issues with a field:
* Add text until I get CR, then try to work out how many characters back the
beginning of the line is, and start adding text at that point.
* I would need to make sure that the 'over writing' works, i.e. keep a log
of what is being over written so that I can end up with some text remaining.
e.g. to display "ab\rc" I would end up with "cb".
* Scrolling is taken care off.
* I can't work out where the CRs take me until I put the text into the
field.
Custom gadget:
* Maximum control.
* Loads of keyboard bashing.
* Have to write code to allow scrolling.
* Would have to use fixed width characters, and there isn't a fixed width
font, so unless I find out how to use my own font it won't look too good.
I am using Codewarrior.
Any advice will be gratefully received.
Chris Percival
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/