-
Accessing Sub-Menu Hierarchy
I am trying to figure out how to access the sub-menu hierarchy of a menu system installed on a window’s menu bar. A simple part of this is visually appears/acts like this: Primary–>Print–>This Group or All Groups. With certain application conditions I wish to disable the “All Groups” option within the Print sub-menu. However, the Notation Inspector shows nothing beyond $iwindows.frmMenuTest.$menus.mnuPrimary.$objs.cmdPrint. How do I notationally access the sub-menu to change the enablement of one of its lines?
P.S. I tested a bunch of different combinations to see if I could figure this out. The only thing that worked was resetting the $cascade property of cmdPrint empty, changing $enabled property of the desired mnuPrint line at the library level (Do $clib.$menus…) and then re-assigning the $cascade property to its original value. This is an extremely tedious work-around and has a number of disadvantages.
Log in to reply.