EnableMenu is an XCMD that lets you enable and disable items in menus you've created using the NewMenu XFCN. Examples:
EnableMenu myMenu, 1, FALSE
EnableMenu myMenu, 3, (the userLevel>2)
The first example will always disable the first menu item in the menu "myMenu". The second example will disable the third item in "myMenu" IF the userLevel is greater than 2.
Passing an item number of 0 (zero) will enable or disable the ENTIRE menu.
The menu number you provide to to EnableMenu should be the same number that was returned by NewMenu.
-- part contents for background part 4
----- text -----
EnableMenu <menu>, <itemNumber>, <boolean value>
*Menus for HyperCardΓäó - see NewMenu for examples