Chapter Contents

Previous

Next
SAS/AF Software: Class Dictionary

Overview

The Slider class enables you to create sliders, which are objects that indicate a quantity and its relationship to the range of possible values for that quantity. A slider enables you to easily select a value that falls within a specified range. Values in the range are defined by a minimum and a maximum value, as well as by an increment that determines the interval between successive values.

For example, a slider with a minimum of 0, a maximum of 10, and an increment of 2, may return values of 0, 2, 4, 6, 8, and 10. The maximum value is represented visually on the slider when the thumb is at the far right for a horizontal slider and at the bottom for a vertical slider. The minimum value is represented visually on the slider when the thumb is at the far left for a horizontal slider and at the top for a vertical slider.

A slider looks and functions much like the sliding volume control on a radio. You can use a slider to adjust the range of an object it is associated with, such as a critical success factor, or to change numeric data over a known range of data values. For example, assume you have an equation with three variables, and you want to test the outcome of the equation based on a variety of values for each variable. In this case, you could create a slider for each variable in the equation. You could set, and reset, the value of each variable through the sliders and analyze the effects on the outcome of the equation.

Use a slider in your applications when you need to see the current value of an element relative to the range of possible values for that element.

PARENT: SASHELP.FSP.WIDGET.CLASS

CLASS: sashelp.fsp.Slider.class


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.