I know the ID of the gadget, but I have a common event handler for the multiple gadgets on my form. They share the same event handler, so, the only way I know which one is calling the event handler is by the ID in the FormGadgetType structure passed in, but, I have know way of getting access to that structure (or I don't know how).
I spent a little time this weekend thinking about the hole I dug myself in to and I know a way around it, but I am still curious as to how to access the data in the FormGadgetType structure. I am a bit new at this and my experience with the API is limited. Thanks for all of your help and patience. Brad Figler "Joe Malone" <[EMAIL PROTECTED]> wrote in message news:87793@palm-dev-forum... > > --- Brad Figler <[EMAIL PROTECTED]> wrote: > > I am using the following code but the ActiveForm is coming > > back as NULL. > > > > FormType *form = FrmGetActiveForm(); > > ... > > I do not know the gadget ID, nor do I have access to the > > form! > > I wonder why you don't know the gadget ID since you created that gadget > and gave it an ID when you created it. > > Something that might help you is to use FrmGetFormPtr() instead of > FrmGetActiveForm(). The active form is not always the form you think > is active. > > > __________________________________________________ > Do You Yahoo!? > Yahoo! - Official partner of 2002 FIFA World Cup > http://fifaworldcup.yahoo.com > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/