Spinner

 

The Spinner control has a pair of arrow buttons which the user can click to increment or decrement a value displayed in a small edit box connect to the arrow buttons.

Use the control’s Variable attribute to set the range of values that the control will display. The variable should contain a vertical bar (|) delimited list with two or three items. Make the first item the minimum value and the second the maximum value. The minimum value can be greater than the maximum value but both values must be in the range of –32768 to 32767 and the difference between the values cannot exceed 32767. The third value indicates the amount to add or subtract from the displayed number each time the user clicks an up or down arrow (or presses the arrow keys when the control has the input focus.) The control adds or subtracts one (1) each time, if you do not supply the third value.

 

var = "{minimum} | {maximum} | {increment}"

 

The final Value selected by the user is placed in the Variable when the Dialog function returns.

You can indicate the initial value for your control by placing a number in the in the Pre-Selected Item attribute of the control definition. The control will default to the minimum value if you do not indicate an initial value or if your initial value does not fall within the range you have selected in the Variable attribute.

 

image\spinner.gif

 

 

Control Attributes

 

Calendar

Check Box

Com Control

DateTime

Drop-down Combo Box

Edit Box

File List Box

Group Box

Item List Box

Menu Bar

Menu Item

Multiline Edit Box

Picture

Picture Button

Push Button

Radio Button

Report View

Spinner

Static Text

Variable Text

For example, the line in the script generated by the WIL Dialog Editor may look like:

 

Settings = "0|100|1"

MyDialog003=`082,052,043,012,SPINNER,"Spinner_1",Settings,"1",DEFAULT,3,DEFAULT,DEFAULT,DEFAULT,DEFAULT`