>I was wrong on this one; I did more digging and found that the FormType
>image in memory is basically a copy of the resource with various internal
>fields fixed up.  This means that only a dynamically created gadget has
>space for the handler, which would explain why they didn't made
>resource-instantiated gadgets extended.

While your first sentence is true, the second isn't: it isn't true that
resource-instantiated gadgets can't be extended.  It depends on what
version of the PalmRez Post Linker (or prc-tools) was used to make the PRC.
Newer ones allocate the extra space, in a way that doesn't mess up older OS
versions.


>I've found that almost anything you can do with an extended gadget
>can be done with a normal gadget and glue code, and it will work on older OS
>versions as well.  I'm glad Palm tried to be innovative here, but with the
>limitations, I don't really see what adding the whole extended gadget
>concept bought them.

It simplifies code if you're running on newer OS versions, and ensures that
you'll always know when to draw or erase yourself etc.  And the situation
is better than you might have thought, given that you can have them created
by resources like normal.

-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