How to Insert a Slider

Previous Next

See Also

A slider allows the user to set a value on a continuous range of possible values, such as volume control, or the speed of a movie being shown. Sliders are useful when the exact value is less important than its position relative to the range of possible values.

You can create a slider:

· In the Definer, by using the Slider display type for a domain.

 

· In the Windows Designer, by inserting a slider control class into a window or dialog.

If you create the control using the Slider display type, allowed values must be defined at domain level. In this case, the slider appears automatically after synchronization.

If you create the control in the Windows Designer, allowed values can either be hard-coded, or retrieved from the database by means of a SQL statement or Related Column.

To insert a slider:

1. Use the Windows Designer catalog to open the appropriate window/dialog.
2. In the design view, select the object into which you want to insert a slider.
3. From the menu bar, choose Insert, Slider, or drag your own slider control class from the Controls tab page of the Windows Designer catalog.
4. Select the slider, and then open the Property Inspector.
5. On the General tab page of the Property Inspector:
· Set the Range Maximum, and Range Minimum properties to indicate the range of allowed values.
· Set the Prompt property.
6. On the Visual tab page of the Property Inspector:
· Set the Tick Mark Position property to indicate whether the tick marks must be displayed at the top or at the bottom of the slider.
· Set the Tick Mark Frequency property to indicate how many tick marks the slider is to have (for example, if you type "5", every fifth unit will have a tick mark).