FloatControlEnable

HC GUI programming FloatControls FloatControlEnable
FloatControlOnChange Gauges

FloatControlEnable afloatcontrol state


Command. If state is true then it enables the FloatControl afloatcontrol, if state is false then it disables the FloatControl.

state must be a boolean.

Example:

fcx=(FloatControl [] [X] -400 0 400 1.01 5
	[	x=FloatControlValue
		;(pr "x= x)
		setX x
		updateGraph
	] 2 0 [10 20][-1 -1])
FloatControlEnable fcx false
;Click on the FloatControl again --nothing happens
FloatControlEnable fcx true	;enabled again

Reference:

FloatControlOnChange Gauges