At 10:27 PM +0200 04/25/00, Marty Rice wrote:
>But only if you are ok with the program only working properly on OS 3.5!
>See the earlier thread "need help using SetCtlLabel".
FrmCopyLabel works in older OS's too.
It does have a moderate bug in OS's prior to 3.5. In these releases, it
does not erase the old label before drawing the new one. So, if the new
label is shorter than the old one, you'll get leftover pixels.
There is a simple workaround: call FrmHideObject first to erase the old
label, then call FrmCopyLabel to change the text, then FrmShowObject to
show it again.
Or call WinEraseRectangle on the FrmGetObjectBounds of the label, then call
FrmCopyLabel to change it. (FrmCopyLable WILL redraw the new label.)
Both of these workarounds are simple, and you'll use less code than what's
required to manage a field.
--Bob
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html