Matt West Wrote;
> I'd like to display some text programmatically. In the Rhodes and McKeehan
> book, they suggest it may be better to use a non-editable field rather than
> a label. Does anyone have an opinion on this?
I definitely prefer to use a label in preference to a field. Another difficulty
with using fields is that there's no way (that I can find) to stop the field from
being selectable even if it's set to non useable. I tried a few different ways
to stop this but the field would still highlight when the pen was dragged over
it.
Be careful with the amount of memory allocated to the label. The form will
allocate memory for the label when it loads based on the length of the text that
is originally allocated to it in Constructor. If you allocate a longer string
than is originally set then you'll get hard to track gremlin crashes etc.
Other options that can be useful are;
- WinDrawChars - works great!
- WinDrawChars within a gadget (like the AddressBook code) if you want to do
multiline text, erase the area etc. and want to relate it all back to something
easily seen and moved in Constructor.
Hope this helps?!?
-Darren Beck
http://www.codecity.com.au