Help Contents / GUI programming / ToggleButtons / ToggleButtonSetValue

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? 


previous: ToggleButtonValue	next: ToggleButtonEnable
