ComboBoxEnable

HC GUI programming ComboBoxes ComboBoxEnable
ComboBoxOnEnter FloatControls

ComboBoxEnable acombobox state


Command. If state is true then it enables the ComboBox acombobox, if state is false then it disables the ComboBox.

state must be a boolean.

Example:

cb=(ComboBox [][MyComboBox][Initial string]
	[	[String 1]
		[and a second string]
		[and the last string]
	]
	[	(show "|MyComboBox| ComboBoxSelection)
	]
	[	(pr [change] ComboBoxValue)
	]
	[	v=ComboBoxValue
		(pr [enter] v)
		ComboBoxAppend cb v
	]
	wxCB_simple [-1 -1][300 200])
ComboBoxEnable cb false
;Click on the ComboBox again --nothing happens
ComboBoxEnable cb true	;enabled again

Reference:

ComboBoxOnEnter FloatControls