|
|
|
ToggleButtonEnable aToggleButton state
Command. If state is true then it enables the ToggleButton aToggleButton, if state is false then it disables the ToggleButton.
state must be a boolean.
Example:
tb=ToggleButton [][Hide Turtle][ ifelse ToggleButtonValue tb [hideTurtle][showTurtle] updateGraph] ToggleButtonEnable tb false ;Click on the ToggleButton again --nothing happens ToggleButtonEnable tb true ;enabled again |
|
|
|