From Inspired-Lua Wiki
Jump to: navigation, search

toolpalette.enable is a function that is part of the toolpalette.

This routine enables or disables a menu item in the tool palette.
This routine returns true if the menu item was properly enabled or disabled. It returns nil if no tool palette has been previously registered by the script app or if the toolname / itemname pair cannot be found in the registered menu items.

This has been introduced in TI-Nspire OS 3.0 (Changes).


toolpalette.enable(toolname, itemname, state)

Parameter Type Description
string name of the top level toolbox
string name of the menu item
boolean value that enables the menu item if true or disables the menu item if false.


toolpalette.enable("theToolpalette", "firstMenuItem", true)

See also[edit]