I have code that does a FrmHideObject, followed by a CtlSetLabel, and a
FrmShowObject.  This code works fine when applied to a selector trigger...
as the label string changes length, the trigger resizes appropriately.
(Yes, I initially allocated the trigger's label string to be long, so my
code doesn't overflow its memory.)

I apply the same code to a label object on the same form, and it appears to
work fine.

I apply the same code to yet another label object on the form, and for some
reason, the FrmHideObject only clears a portion of the label field, leaving
garbage (the old string) in roughly the last half.  It's as if the
WinEraseRectangle that (I'm guessing) is done inside FrmHideObject doesn't
see the entire length of the field.  I've used POSE to convince myself that
the bad behavior is, in fact, inside the FrmHideObject call.

Does anyone know if this is a known bug (I'm debugging against PalmOS 3.1)?
Is there a workaround?  I'd do the WinEraseRectangle, but how do I know the
real, current, area of the field?   I've not seen anything in the FAQ's on
the PalmOS site that would lead me to a solution.
Thanks
-don



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to