>Just remember that extended gadgets are only supported when dynamically
>adding a gadget to a form.  A gadget specified in Constructor doesn't
>have the required internal padding needed to store the handler pointer
>than an extended gadget uses.

That's only true if you're using a pre-3.5 SDK.  As of the 3.5 SDK, the
PalmRez plugin always allocates space in the form for the gadget to be an
extended gadget.  This has no effect when the PRC is running on a pre-3.5
device (i.e. it is just a normal gadget), but allows that same PRC to use
extended gadgets on 3.5 and higher.

Just make sure you don't call FrmSetGadgetHandler prior to 3.5, though,
since it didn't exist.  You'll have to do the redrawing at all the "right"
times on your own.  frmUpdate as well as any time you call FrmDrawForm, and
probably others.

-David Fedor
Palm Developer Support

-- 
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