Look for FormGadgetTypeInCallback.  This is a non-opaque type that allows you to get 
into the gadget structure from within your registered callback.

Kevin

-----Original Message-----
From: Brad Figler [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 03, 2002 10:35 AM
To: Palm Developer Forum
Subject: Re: Gadget Question


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/


------------------------------------------

The information in this transmittal and any attachments is privileged and confidential 
and is intended only for the recipient(s) listed above. You are hereby notified that 
any unauthorized distribution or copying of this transmittal or its attachments is 
prohibited. If you have received this transmittal in error, please notify Invivodata 
immediately at (831) 438-9550.

------------------------------------------


--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to