Slider

Lets the user graphically select a value by sliding a knob within a bounded interval. The slider can show both major tick marks and minor tick marks between them. The number of values between tick marks is controlled by Major Tick Spacing and Minor Tick Spacing properties.

This is what a slider looks like:

Common Properties

Width, Height, Bindings, Enabled, Visible, Foreground, Background, Opaque, Border, Font, Cursor, Tooltip, Focusable, Popup Menu

Custom Properties

Value

(Default Property)

Default value of a slider.

Property name: value

Property type: Integer

Orientation

Orientation of slider: Horizontal or Vertical.

Property name: orientation

Property type: Integer

Minimum

Minimum value of a slider.

Property name: minimum

Property type: Integer

Maximum

Maximum value of a slider.

Property name: maximum

Property type: Integer

Minor Tick Spacing

This is the distance, measured in values, between each minor tick mark. If you have a slider with a range from 0 to 50 and the minor tick spacing is set to 10, you will get minor ticks next to 0, 10, 20, 30, 40, and 50.

Property name: minorTickSpacing

Property type: Integer

Major Tick Spacing

This is the distance, measured in values, between each major tick mark. If you have a slider with a range from 0 to 50 and the major tick spacing is set to 10, you will get major ticks next to 0, 10, 20, 30, 40, and 50.

Property name: majorTickSpacing

Property type: Integer

Paint Track

Determines whether the track is painted on the slider.

Property name: paintTrack

Property type: Boolean

Paint Ticks

Determines whether tick marks are painted on the slider.

Property name: paintTicks

Property type: Boolean

Paint Labels

Determines whether labels are painted on the slider.

Property name: paintLabels

Property type: Boolean

Custom Labels

Table that contains custom labels for the slider. Each label is characterized by slider value at that it is painted and label description.

Property name: customLabels

Property type: Data Table

Common Events

Hidden, Shown, Moved, Resized, Mouse Clicked, Mouse Pressed, Mouse Released, Mouse Entered, Mouse Exited, Mouse Moved, Mouse Wheel Moved, Key Typed, Key Pressed, Key Released, Focus Gained, Focus Lost

Was this page helpful?