Help Contents / GUI programming / TextControls / TextControlEnable

TextControlEnable atextcontrol state

Command. If state is true then it enables the TextControl aTextControl, if state is false then it disables the TextControl. 

state must be a boolean. 

Example: 

	t=(TextControl [][TextControl1] 
		[This is the initial text.][][] 
		wxTE_MULTILINE [0 0][300 200]) 
	TextControlEnable t false 
	;Click on the TextControl again --nothing happens 
	TextControlEnable t true	;enabled again 


previous: TextControlOnEnter
