"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. The debug ROMs will
return a deliberately bad value for any call for the current form
pointer before FrmDrawForm is called so any call that requires
a FromPtr is also out (as I understand it). This means that you
have to either draw your form, then set your control properties
and draw it again (putting up with the flicker) or walk away
from all the control API functions that Palm suggest you use
and go back to setting control properties by directly altering the
private structures.
The last I heard at least one of the Palm standard apps (Date?)
fails on debug ROMs because of this behaviour.
A workaround someone suggested some time ago that I haven't
had time to test was setting the clip region to something tiny for
the first FrmDrawForm.
Chris Tutty
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/