Help Contents / GUI programming / ChoiceBoxes / ChoiceBoxEnable

ChoiceBoxEnable achoicebox state

Command. If state is true then it enables the ChoiceBox achoicebox, if state is false then it disables the ChoiceBox. 

state must be a boolean. 

Example: 

	cb=(ChoiceBox [][MyChoiceBox] 
	[	[String 1] 
		[and a second string] 
		[and the last string] 
	] 
	[	(show "|MyChoiceBox| ChoiceBoxSelection) 
	]) 
	ChoiceBoxEnable cb false 
	;Click on the ChoiceBox again --nothing happens 
	ChoiceBoxEnable cb true	;enabled again 


previous: ChoiceBoxOnSelect
