At 10:57 PM +0100 3/15/01, Chris Tutty wrote:
>"jacky Cheung" <[EMAIL PROTECTED]> wrote
>> Yes, it is documentated in FrmDrawForm (I just read it).
>> But what do you mean by draw? Does it include using
>> FrmHideObject and FrmShowObject etc.?
>>
>Unfortunately, because many of the PalmOS functions that set
>control properties also redraw the control it means almost
>everything you can do with a control.

Actually, that's not the case.  There were bugs here, but in almost all the
cases the control update functions will NOT redraw if (1) the form has not
been drawn, or (2) the control is hidden.  It should always be safe to
adjust a control value even before the form is drawn.

In the cases where it is not (mostly on older versions of the OS), you have
to work around this, usually by calling FrmHideObject before updating the
control.  (I'm not aware of any objects that try to draw when the object is
hidden.)

                                        --Bob



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

Reply via email to