hi,
further testing on this shows that it freezes both POSE and the m100
It does not seem to matter whether I return true or false.
the only solution I can come up with is to build the menu from scratch with
the options I want in, rather than starting with everything and hiding the
ones I don't want.
regards,
Eamon
----- Original Message -----
Message: 14
Date: Mon, 23 Jul 2001 12:33:32 +0100
From: "Eamon Kelly" <[EMAIL PROTECTED]>
Subject: HideMenuItem
hi,
has anyone got "HideMenuItem" to work properly?
I tried it using this code:
Boolean BaseFrm::EventHandler (EventPtr eventP)
{
Boolean bHandled=false;
switch (eventP->eType)
{
case menuOpenEvent:
MenuHideItem (MyMenuItemID);
bHandled = true;
break;
}
return bHandled;
}
the menu in question has 10 items, and MyMenuItemID is item 4.
When I display the menu, the item is missing - great, but if I select an
item from the menu after the missing one the Palm freezes - selecting an
item before the missing one works fine.
In the emulator, this code appears to set the "reserved" byte instead of the
"hidden" bit, but I tried modifying the bit directly and got the same
result.
I am using an m100 with 3.5.1 ROM
any ideas?
Eamon
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/