921 bytes added,
23:54, 24 May 2011 toolpalette.'''enable''' is a function that is part of the [[:Category:toolpalette|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.
{{Since|3.0}}
== Syntax ==
toolpalette.'''enable'''(toolname, itemname, state)
{| class="wikitable"
|-
! Parameter !! Type !! Description
|-
| <u>toolname</u> || string || name of the top level toolbox
|-
| <u>itemname</u> || string || name of the menu item
|-
| <u>state</u> || boolean || value that enables the menu item if true or disables the menu item if false.
|}
== Example ==
<syntaxhighlight></syntaxhighlight>
== See also ==
*[[toolpalette]]
*[[LINK_2]]
<br /><br />
[[Category:toolpalette]]