Hi all!
I have made a menu, but when I run my program it wont' popup. I also wonder
how to do if I only want the menu to popup from a special window.
Do any of you know what I have done wrong?? or left out??
Thanks in advance!!!
Maria
This is my code:
In Menu.cpp:
------------
static Boolean mnuSave_OnSelect(UInt16 menuID)
{
// Insert code for mnuSave
FrmPopupForm(frmMain);
return true;
}
Boolean ApplicationHandleMenu(UInt16 menuID)
{
Boolean handled = false;
switch (menuID)
{
// Event handler for menu item
case mnuSave:
handled = mnuSave_OnSelect(menuID);
break;
default:
break;
}
In the eventloop in main:
-------------------------
case menuEvent:
// Set event handler for application
handled = ApplicationHandleMenu(event->data.menu.itemID);
break;
_________________________________________________________________
H�mta MSN Explorer kostnadsfritt p� http://explorer.msn.se
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/