IntControl

HC GUI programming IntControls IntControl
IntControls IntControlDestroy

IntControl parent name min value max onChange
(IntControl parent name min value max)
(IntControl parent name min value max onChange style pos size)


outputs a new IntControl 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.

min, value and max must be integer numbers.

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.

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).

Examples:

ic=(IntControl [][X] -400 0 400 [x=IntControlValue (pr "x= x)]) ic2=(IntControl [][Y] -400 0 400
[	y=IntControlValue
	(pr "y= y)
] wxSP_Arrow_Keys [10 100][80 -1])

Examples:

References:

IntControls IntControlDestroy