MainNameField == Resource ID of the field (the ID # assigned in your
resource editor)  Look in your resource header file generated by the
resource editor for the ones available to your app.
Yes, it is possible to use the same handler for every form.  The big
drawback is working with the resource IDs.  The label/IDs will be different
for each form.  You may be better off writing individual handlers for each
form but common routines to handle common messages.  If you plan to use the
same menu for multiple forms, you could use the same menu handler.  I've
done it in the past without too many hassles.

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Tuesday, July 24, 2001 3:15 PM
Subject: Handling Menu Events....


> Im puzzled by this code found in many examples i have been looking at:
>
> field = FrmGetObjectPtr (form,
>      FrmGetObjectIndex(form, MainNameField));
>
> This particular example comes from a simple HelloWorld app.
>
> Whats confusing me is the MainNameField portion.  In the HelloWorld App
> there is only one field that gets handled.  Im doing an app where there is
> many.  I have this same code in my app but it isn't working because of
this
> expression.  If someone could give me some help it would be greatly
> appreciated
>
> What im basically asking is can i have a function called
> MainMenuHandleEvent that works with the same with all the different forms
i
> have in my app, and if i can how do I do it???
>
> Thanks
>
> Jim
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
>



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