At 6:37 PM +0200 07/4/00, Dave Johnson wrote:
>And for something like a label, there is no FrmSetObjectUsable routine,
>only FrmShowObject and FrmHideObject, which try to draw. Or have I missed
>something?
FrmShowObject will only try to draw the object if the form itself has been
drawn. That is, if the form has not yet been drawn, you can still call
FrmShowObject or FrmHideObject and this will update the usable flags for
the objects but will not draw them (and will not generate any errors.)
This is another excellent example of where FrmShowObject is an improvement
over CtlShowObject! CtlShowObject can't make the "is the form visible"
test, because the control doesn't know about the form.
--Bob
________________________________________________________________________
Bob Ebert, Consulting Engineer, Palm Computing Europe V: +33 4 9952.4354
77 rue Samuel Morse, 34935 Montpellier Cedex 9 France F: +33 4 9952.4397
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/