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/

Reply via email to