Hi everyone, Richard, thank you so much for your respond, I use FrmGetObject*() that you show me and they work fine. > FrmGetFormPtr() returns NULL (==0) if the specified form is not in memory. > The form hasn't been loaded into memory when your code executes AppStart(). My stupid question, FrmGetFormPtr() only return the form pointer when the form is in memory, which is when frmLoadEvent is queued( when we call FrmgotoForm() or FrmPopupform()), why do we need FrmGetFormPtr(formID) while we can use FrmGetActiveForm(<no parameter>)? >Is this an extended gadget and are you using the 3.5 New Feature Set? Have >you defined and set up the gadget handler with FrmSetGadgetHandler()? Is >your gadget handler responding to formGadgetDrawCmd and formGadgetEraseCmd? >If not, then the gadget is really not much more than a screen area you >define so you can later get it's bounds. For some gadget, I just need to bounds, for some other gadgets, I do need to define and setup the gadget handler. The gadget handler is called when user tab inside/outside the gadget. I need the gadget to draw w/o user control. I am hoping that when I set the gatget unusable, it won't be drawed. I am wrong? >> How do I check the value of usable of that gadget? >> How do I set the value of usable of that gadget? >Use FrmShowObject() to set it and FrmHideObject() to clear it. Can I read the value of usable of a gadget? Can anyone help me, please. Thanks a lot. tnn __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
