CheckBoxEnable

Help Contents GUI programming CheckBoxes CheckBoxEnable
CheckBoxSet ChoiceBoxes

CheckBoxEnable acheckbox state


Command. If state is true then it enables the CheckBox acheckbox, if state is false then it disables the CheckBox.

state must be a boolean.

Example:

cb=CheckBox [][Hide Turtle][
	ifelse CheckBoxValue cb [hideTurtle][showTurtle]
	updateGraph]
CheckBoxEnable bfd false
;Click on the CheckBox again --nothing happens
CheckBoxEnable bfd true	;enabled again

Reference:

CheckBoxSet ChoiceBoxes