On Wed, 19 Apr 2000, Nick Torenvliet wrote:
> 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
Your app is supposed to handle the commands that are generated from the
selections users make in the menus. I believe the "MenuHandleEvent"
handles things like drawing the menus, inverting the display when an item
is selected, closing the menus when it has been selected, etc.. Unless
you want to do all that yourself, you should use the system stuff.
--
Brian Mathis
Direct Edge
http://www.directedge.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html