ClassPackage: common-graphicsToCDocOverviewCGDocRelNotesIndexPermutedIndex
Allegro CL version 6.2
Unrevised from 6.1

up-down-control

Class

The class of the up-down control. That is a control with two arrow heads pointing in opposite directions used for incrementing a numeric value in either direction by clicking on the arrow heads. A range of valid values can be specified by the range property.

Can be used on its own or paired with a buddy. A possible buddy-widget is the editable-text control. Once paired, the up-down-control will modify the display of its buddy-widget, otherwise it only modifies its own value (which can be programmatically accessed and, if desired, displayed elsewhere).

For example, place an editable-text control on a form and place an up-down control next it. Make the value of the editable-text 1 and the range of the up-down control (0, 100). Ensure that the editable-text is correctly identified as the buddy-widget of the up-down control (as indicated by the buddy-widget property). When you run the form, the value in the editable text widget will increase (up to 100) and decrease (down to 0) as the up-down control is clicked.

See About how to get sample code for creating controls in cgide.htm, which explains how to use the IDE to create such code.


Copyright (c) 1998-2002, Franz Inc. Oakland, CA., USA. All rights reserved.
Documentation for Allegro CL version 6.2. This page was not revised from the 6.1 page.
Created 2002.2.26.

ToCDocOverviewCGDocRelNotesIndexPermutedIndex
Allegro CL version 6.2
Unrevised from 6.1