FloatControl
HC
GUI programming
FloatControls
FloatControl
FloatControl parent name min value max increment digits onChange
(FloatControl parent name min value max increment)
(FloatControl parent name min value max increment digits onChange format style pos size)
outputs a new FloatControl on the parent (a Frame or a Graph, main Graph if []).
name is the label text and the name of the control.
min is the minimal allowed value that the control accepts.
value is the number shown at startup of the control.
max is the maximal allowed value that the control accepts.
increment is the amount by which the arrow keys increase or decrease the value.
min, value, max and increment are Logo numbers that will be converted to Float's internally.
digits are the number of digits of the number behind the dot. It's an integer number and defaults to 3 if not supplied.
onChange is a command list that will be run if the OnChange event of the control is processed. That's whenever the number in the control changes anyhow.
format is an integer between 1 and 3, meaning 1="%f" (floating point), 2="%e" (exponential) and 3="%g" (Signed value printed in f or e format, whichever is more compact for the given value and precision. The e format is used only when the exponent of the value is less than 4 or greater than or equal to the precision argument. Trailing zeros are truncated, and the decimal point appears only if one or more digits follow it.).
style is the window style and can be the special value wxSP_ARROW_KEYS to which it defaults.
pos is the position of the ComboBox (a list of two integer numbers, x and y),
size is the size of the ComboBox (a list of two integer numbers, width and height).
Example:
Examples:
References: