Help Contents / GUI programming / Sliders / SliderEnable

SliderEnable aslider state

Command. If state is true then it enables the Slider aslider, if state is false then it disables the Slider. 

state must be a boolean. 

Example: 

	s=(Slider [][X] -400 0 400 [x=SliderValue (pr "x= x)] 
		wxSL_horizontal+wxSL_Labels+wxSL_Ticks 
		[10 220][200 80]) 
	SliderEnable s false 
	;Click on the Slider again --nothing happens 
	SliderEnable s true	;enabled again 


previous: SliderOnScroll
