"Luc Le Blanc" <[EMAIL PROTECTED]> a écrit dans le message de news: 
[EMAIL PROTECTED]
>I have a "Connect GPS" menu item that I would like to toggle to
> "Disconnect GPS" once the GPS is connected (I would be equally happy
> to use a checkmark along with a "GPS Connected" item if that was
> possible). Alas, a menuOpenEvent is only sent the first time the menu is 
> shown, thus defeating the idea. Any trick?
>
> I chose a menu because the form has no room left for a button.
> I could also use the MenuCmdBarAddButton, but that requires PalmOS 3.5, 
> while I support down to 3.0.
>

Luc,

I create all the possible menu item I will need and I use MenuShowItem and 
MenuHideItem to display the one I need at a given time.
This only works if you have a limited number of possibilities.

-- 
Regis St-Gelais
www.laubrass.com 



-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to