|
Total Access Components Tour: SliderThe Slider control is a databound control that is used to adjust a numeric value by dragging or sliding the control’s tab or handle. It is commonly used in Windows Applications to adjust a continuous numeric value smoothly. The Slider control can be associated with another control to adjust that control’s value, or it can be used by itself as a vehicle for input.
Using the Slider controlThere are three basic steps for using the Slider control: Step 1: Associate the Slider control with another controlIf you want the slider to adjust the value in another control,
determine which control on the form to use. Otherwise, the slider can
be used by itself to update a field or a value used in a subroutine. Step 2: Modify the Slider control’s propertiesOpen the Slider control’s property sheet by right-clicking on
the control, selecting FMS Slider Control 2002 Object, and choosing
Properties. The Min and Max properties should always be set to the
lower and upper limits of the input required. The control’s Value
property is used to set its initial value. The LargeChange and
SmallChange properties can be used to increment a value by the amount
entered in either property as the Slider control is adjusted. Step 3: Write code for changes to the Slider control’s valueIn the Slider control’s OnChange event, write code to apply the user's changes. This can change the associated text box or other control’s value by applying the Slider control’s Value property, or by adding/subtracting the Slider control’s LargeChange or SmallChange values to the value in the associated control. Slider Properties
Slider Events
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||