Progress
AppBuilder
Developer’s Guide
Configuring a Slider-Control Instance
You can change some basic characteristics of the Slider-Control widget’s appearance and behavior through its Property Sheet, if the default settings do not meet your needs.
To configure your Slider-Control object, begin by selecting it and choosing Tools
Property Sheet. The dialog box opens:
![]()
Minimal Configuration
Although you can accept many default settings, there are some you should change:
- Object — Change the object identifier to one that more closely matches the role of this Slider Control in your application.
- Min/Max Values — By default, the Slider Control represents the subrange 0–100. Unless this already meets your needs, define the subrange you want. The Slider will represent any signed 16-bit integer (–32768 to 32767).
- Initial Value — By default, the Slider Control is initialized to 0, or to the lowest value in the subrange if 0 is outside the subrange. To initialize to some other value, click the Advanced button and, when that dialog box opens, type in the initial value you desire.
- Tic Marks — By default, the scale (virtual slot) is unmarked. You can choose to add tic marks to either or both sides. If you do, you can also choose the value interval (default is 10, for a 0–100 scale).
Help
You can provide additional help to your users with these settings:
Geometry
Reflects the XY origin and size, in character units, of the Slider Control’s bounding box. By default, the object’s origin is considered to be the upper-left corner. You can elect to have AppBuilder consider the origin to be the upper-right corner instead, though this will not change the object’s actual position in any way.
Miscellaneous Properties (Other Settings)
There are a number of changes you can make to the Slider Control’s appearance and behavior if the default settings do not meet your needs:
- Auto-resize — Normally cleared. Setting this box causes the Slider Control to automatically resize itself as needed.
- Display — Normally set. Clearing this box prevents the Slider Control from automatically revealing its initial value. Note however that by its nature the object will always give the appearance of having been initialized.
- Drop Target — Normally cleared. Setting this box causes the Slider Control to experience an event whenever the user drops another object onto it. You would have to write the code to handle the event and deal with the object dropped.
- Enable — Normally set. Clearing this box prevents the Slider Control from accepting the input focus when offered. This would mean the user could not change the Slider Control’s value.
- Hidden — Normally cleared. Setting this box prevents the Slider Control from responding to implicit requests to show itself. You would have to include code to explicitly request it to appear.
- Horizontal — Normally cleared. Setting this box causes the Slider Control to orient its track horizontally rather than vertically.
- Large-to-small — Normally cleared. Setting this box reverses the default direction of the values. Normally, the lowest value is at the bottom or left of the track. With this box set, the bottom or left end has the highest value, instead.
- No Current Value — Normally cleared. Setting this box turns off the integral numeric readout.
- No Tab Stop — Normally cleared. Setting this box removes this instance from the enclosing Frame’s traversal list. An object not in the traversal list can neither gain nor lose focus when the user presses the TAB key.
- No Undo — Normally set. Clearing this box causes this Slider Control to journal all user changes to its value.
- Remove from Layout — Cleared. Cannot be set except when defining an alternate layout.
- Shared — Normally cleared. Setting this box makes the Slider widget and its variable available to other procedures.
Advanced Properties
A Slider–Control widget has only the standard Advanced Properties, but you can change those that do not meet your needs. See the "Advanced Properties" section in "Frequently Used Dialogs," for more information.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |