MenuHandleEvent() does things like display the menu when the user taps
the menu icon and displaying different menus when the user taps a menu
title and then when the user picks a menu item, MenuHandleEvent() adds
the event to the queue that you eventually see when a menu item is selected.
So unless you want to do all that yourself (good grief!) you call
MenuHandleEvent()
to do it for you!

Brandon



----- Original Message -----
From: Nick Torenvliet <[EMAIL PROTECTED]>
To: Palm Developer Forum <[EMAIL PROTECTED]>
Sent: Wednesday, April 19, 2000 12:34 PM
Subject: Main App Event Loops


>
> I am working through volumes of example code and I have a question about
the
> AppEvent loop.
>
> Most examples and the stationary available in CW6 have the following loop
in
> the AppEvent
> function
>
> do {
> EvtGetEvent(&event, evtWaitForever);
>
>
> if (! SysHandleEvent(&event))
> if (! MenuHandleEvent(0, &event, &error))
> if (! AppHandleEvent(&event))
> FrmDispatchEvent(&event);
>
> } while (event.eType != appStopEvent);
>
>
>
> My question is what does calling MenuHandleEvent do and why call it if
your
> form's event
> handler processes all the menu options that are included in your program?
Is
> it the
> routine that makes menus created in constructor visible?
>
> thanks for your help.
>
> Nick Torenvliet
>
>
>
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html
>
>


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to