Menu

Spincontrol

Jim Saxton

Spincontrol

This widget is used for selecting a number from a range of numbers.

spincontrol

age.type = spincontrol
age.label = Age:
age.default = 20
age.min = 10
age.max = 110
age.step = 1
age.align = center
age.tooltip = Please enter your age

spincontrol widget

A window showing the example above

.label The text prompt to display.

.default The pre-selected number. If this is missing, the minimum number is selected.

.min The minum (lowest allowed) number in the range set to 0 if no min is specified.

.max The maximum (highest allowed) number in the range. 999 is the default and maximum that can be set.

.step The size of the jump between selections. 1 is used if no step is provided. this must be a whole number, not a fraction.

.align aligns the spincontrol. default is center, align can be changed to left or right.

.tooltip the tooltip text for the spincontrol.

Back Next


MongoDB Logo MongoDB