ToggleButtonSetValue

HC GUI programming ToggleButtons ToggleButtonSetValue
ToggleButtonValue ToggleButtonEnable

ToggleButtonSetValue aToggleButton state


Command that sets the ToggleButton aToggleButton to checked if state is true, to unchecked if false.

state must be a boolean.

Example:

tb=ToggleButton [][Hide Turtle][
	ifelse ToggleButtonValue tb [hideTurtle][showTurtle]
	updateGraph]
ToggleButtonSetValue tb shown?

Reference:

ToggleButtonValue ToggleButtonEnable