Control - Slider

images\btn_ctrl_slider.gif Insert a slider bar control that can be moved left and right. Adjust the slider by dragging it or by clicking on either side of the slider. Tick marks are optional, and the slider may be oriented horizontally or vertically.

 

Note: Non-Common Control properties are prefaced with "sld", suppressed in the following for greater legibility.

 

In addition to the properties listed below, a Control tab provides access to certain frequently used form properties for this control. See the Form Properties topic for information on those properties.

 

 

Slider

General

 

Min

Minimum value returned by the slider, from zero (default).

Max

Maximum value returned by the slider, typically to 10 (default) or 100.

SmallChange

The amount of change in slider value when user presses left or right arrow keys on the keyboard.

LargeChange

The amount of change in slider value when user clicks to either side of slider handle, or when user presses Page Up or Page Down on keyboard.

OLEDropMode

Set to None (default) if the slider does not accept OLE drops and is to display the No Drop cursor if an OLE drop is attempted. Set to Manual, the slider will trigger OLE drop events, allowing programs to handle the OLE drop operation in code.

Enabled

True or False. True means the object can respond to user-generated events, false prevents it from responding.

SelectRange

True - The slider can have a selected range. False - Can't have a selected range.

SelStart

Used with SelLength to select a range of values in a Slider. Start of selected range. No effect if SelectRange is False.

SelLength

Used with SelLength to select a range of values in a Slider. Length of selected range. No effect if SelectRange is False.

 

 

Appearance

 

Orientation

Horizontal (Default) or Vertical slider.

TickStyle

Tick marks display style. NoTicks; BottomRight - marks on bottom of horizontal sliders and to right of vertical sliders; TopLeft - marks on top of horizontal sliders and to left of vertical sliders; Both - both sides.

TickFrequency

Frequency of tick marks. If range is 100, and TickFrequency is 5, there will be 20 tick marks on slider.

MousePointer

The type of mouse pointer displayed when over the slider. Choose from 16 different types plus a custom pointer

Text Position

ToolTipText position, used for number readout when dragging. AboveLeft - above horizontal sliders and to left of vertical sliders. BelowRight - the other way.

 

 

Picture

 

MouseIcon

Custom icon to use when the MousePointer property is set to 99. Like Visual Basic, will not load animated cursor (.ani) files.