The following figure shows a spin button control (the large left- and right-arrow buttons) implemented in the example application, i-ocx1.w. This spin button control overlays a portion of the frame space defined by an ABL control-frame widget.
In this example, the control-frame (and thus, the control itself) has been largely stretched in the horizontal direction and slightly stretched in the vertical to present a convenient access point in the dialog box. A spin button control is generally designed to provide incremental and decremental values, like a slider. This application uses the events generated by spin button value changes to scan back and forth through a list of
Customer records in the
sports2000 database. It uses the incremental and decremental control values to maintain a record count (Record Number field).
Handling events explains how ABL applications handle events and values.