Slider Formatting Properties |
The AutoTicks property sets or gets whether the slider displays a tick mark for each increment specified by TickFrequency, which gets or sets the spacing of the ticks on the Slider. For even tick spacing, the (MaxRange - MinRange)/TickFrequency should be a whole number. The Ticks property sets or gets whether the slider displays tick marks.
bMode = Slider.AutoTicks
Slider.AutoTicks
= bMode
longFreq = Slider.TickFrequency
Slider.TickFrequency
= longFreq
bMode = Slider.Ticks
Slider.Ticks
= bMode
Element |
Description |
bMode |
True indicates that a tick appears at the interval specified by the TickFrequency property; False indicates that ticks only appear at the ends of the control, or not at all in the case of Ticks. |
longFreq |
An integer value that determines the spacing of the ticks. |
These properties behave exactly as they do in TextBox controls.
The NumTicks property is a read-only property that indicates how many ticks are displayed, including the first and last ticks that are always created.
longNumTicks = Slider.NumTicks
Element |
Description |
longFreq |
An integer value containing the number of ticks. |
The Orientation property gets or sets the orientation, horizontal or vertical, of the Slider control. This property can also be accessed via the Properties page.
longOrientation = Slider.Orientation
Slider.Orientation = bMode
Element |
Description |
bMode |
0 = horizontal Slider, 1 = vertical Slider. |
The Point property gets or sets a value that indicates the style of the pointer.
intStyle = Slider.Point
Slider.Point = intStyle
Element |
Description |
intStyle |
0 gives a rectangular pointer across the center of the slider. 1 gives a pointer toward the top or left (for vertical sliders). 2 gives a pointer toward the right or bottom. |
The Transparent property sets or gets a value that determines whether the control "underneath" is visible.
bMode = Slider.Transparent
Slider.Transparent = bMode
Element |
Description |
bMode |
True indicates that the Slider is transparent; False indicates that it is solid. |