( x )

alphasetvalue()


Change a gadget's value.
 

Syntax


alphasetvalue(
gadget_id$ , value_1$ , [value_2$] )
 

Parameters

Variable Description Default value
gadget_id$ string containing the gadget id$ you wish change the value of. The gadget's id$ is set/created in the AlphaGui editor. -
value_1$ String/Integer/Float containing the gadget's new value, a list of what you change in the different gadget types
 

Gadget type

What you change..

Label None
Button None
Text box The text inside the textbox
Integer box The integer value
Float box The float value
Text area  <void>
Drop down The selected option. where zero is the first option
Cycle The selected option. where zero is the first option
H-Slider Horizontal position of slider knot in the range 0.0...1.0 inclusive.
V-Slider Vertical position of slider knot in the range 0.0...1.0 inclusive.
H/V-Slider Horizontal position of slider knot in the range 0.0...1.0 inclusive.
Checkbox Unchecked = 0 , Checked = 1
Option list The selected option. where zero is the first option
-
value_2$ Optional value for those gadgets which can require more than one value:
 

Gadget type

What you change..

Label None
Button None
Text box None
Integer box None
Float box None
Text area  <void>
Drop down All the options seperated by a "|"
Cycle All the options seperated by a "|"
H-Slider None
V-Slider None
H/V-Slider Vertical position of slider knot in the range 0.0...1.0 inclusive.
Checkbox None
Option list All the options seperated by a "|"
""

Back