> I have a menu structure containing 5 menus (let's say A - E) each of these
> containing several menu items. In my application I have four views
(forms).
>
> In form 1, I'd like to see menus A, B and E
> In form 2, I'd like to see menus A, C, D, E
> In form 3 and 4, I'd like to see menus A and E
>
> How do I do this? I've tried MenuHideItem, but this only hides one
> of the items in a menu, not the menu itself. Hiding all of the items of
> a menu doesn't remove the menu, but leaves an empty menu.
>
> Creating several menu resources is possible, but then I'll have three
> defines for menu items in A and E, which I all have to handle.
> Also, when I want to add a menu item in A, I'll have to do it three times,
> which isn't really maintenance friendly.
>
> Is there a smarter way to do this? (Some sort of a MenuHideMenu call?)

no.

however, you can have the same menu id's on each menu, and, you then
handle the menuEvent inside your ApplicationHandleEvent (not a specific
form handler). this is what we have done for years with our help/about
buttons/menu options :)

ie:

MENU ID menu1
BEGIN
  PULLDOWN "Test"
  BEGIN
    MENUITEM "About" GlobalMenuAbout "A"
  END
END

MENU ID menu2
BEGIN
  PULLDOWN "Test"
  BEGIN
    MENUITEM "About" GlobalMenuAbout "A"
  END
END

... think about it, 100% possible.

---
Aaron Ardiri                           [EMAIL PROTECTED]
CEO - CTO                                              +46 70 656 1143
Mobile Wizardry                         http://www.mobilewizardry.com/


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

Reply via email to