-- card: 5747 from stack: in.1 -- bmap block id: 0 -- flags: 0000 -- background id: 3468 -- name: -- part 1 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=453 top=97 right=119 bottom=484 -- title width / last selected line: 0 -- icon id / first selected line: 1015 / 1015 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: New Button ----- HyperTalk script ----- on mouseUp visual barn door open go card newmenu end mouseUp -- part contents for background part 1 ----- text ----- 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