Guildux
07-20-2005, 01:45 PM
Hi,
I'd like to modify some menu items attributes in the max main menu bar.
I have proceed like this :
theMenu = menuMan.GetMainMenuBar() -- Get the main menu bar
theItem = theMenu.getItem 1 -- Get the "File" menuitem
theMenu = theItem.getSubMenu() -- Get the "File" submenu
theItem = theMenu.getItem 1 -- Get the second item (0-based) of submenu
I'd like to disable the menu item.
I tried to do theItem.enabled = false but it not seems to work.
It seems that the object returned by menu.getItem isn't a menuItem object. But if I print the string returned by the getTitle method, I have the good label.
Thx.
I'd like to modify some menu items attributes in the max main menu bar.
I have proceed like this :
theMenu = menuMan.GetMainMenuBar() -- Get the main menu bar
theItem = theMenu.getItem 1 -- Get the "File" menuitem
theMenu = theItem.getSubMenu() -- Get the "File" submenu
theItem = theMenu.getItem 1 -- Get the second item (0-based) of submenu
I'd like to disable the menu item.
I tried to do theItem.enabled = false but it not seems to work.
It seems that the object returned by menu.getItem isn't a menuItem object. But if I print the string returned by the getTitle method, I have the good label.
Thx.
