Help Contents / GUI programming / Frames / FrameEnable

FrameEnable aframe state

Command to enable or disable the frame aframe. 

state is a boolean. If state is false, aframe and all its children will be disabled, that means, no more user input is accepted. 

Examples: 

	f=Frame [][MyFrame] wxStay_on_top [100 200][200 100] 
	b=Button f [Close][ern "f  GC] 
	FrameEnable f false 
	;try to press the button - nothing happens! 
	FrameEnable f true 
	;try to press the button again - fd 100 executed! 


previous: FrameSetFocus	next: FrameMaximize
