Luc,

So, in the example of Blazer, they have 4 menu items for the Wide page and 
Optimized modes. The pair without the bullets and with the bullets. Based 
on what you click it hides/shows the appropriate menu item? I guess that's 
the way they're doing it because I don't see a way to edit the caption of 
a menu item on the fly. 



/**************************************************
Heath Schaefer
Product Engineer
Sporlan Division, Parker Hannifin Corporation
636.239.7711 x243
**************************************************/



"Luc Le Blanc" <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED]
02/25/2008 01:47 PM
Please respond to
"Palm Developer Forum" <[email protected]>


To
"Palm Developer Forum" <[email protected]>
cc

Subject
Re: Dynamically changing items in menu






Michal Seliga wrote:

> one possibility is to have 2 menubar resources and set needed
> one with FrmSetMenu when you need to change it

> another possibility is to react on menuOpenEvent and use
> MenuHideItem for item you currently want to disappear.
> details about how this event work are in
> reference docs, read it, there is some important stuff


This is probably why you see bullets to mark selected items:
bullets are in the same font as the alphabet. Getting a checkmark
would require a callback to draw menu items with mixed fonts,
alas something Palm OS does not offer.

In my experience, multiple menus are just a pain to use because
they multiply cases in the switch statement to handle items. But
MenuAdd/HideItem APIs are somewhat risky; in my code, I see a past
comment that says "adding a menu item after one that later gets
hidden crashes"...


Luc Le Blanc
-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, 
please see http://www.access-company.com/developers/forums/



-----------------------------------------
"PLEASE NOTE: The preceding information may be confidential or
privileged. It only should be used or disseminated for the purpose
of conducting business with Parker. If you are not an intended
recipient, please notify the sender by replying to this message and
then delete the information from your system. Thank you for your
cooperation."
-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to