Description

The ASlider control is a window containing a thumb, numerical and text labels, and optional tick marks. When the user moves the thumb, using either the mouse or the direction keys, the control fires notification events to indicate the change.

The ASlider control supports a variety of styles from three main groups: slider, knob, and meter.

Properties

 

Axis

DecrementorTop

Image

TabStop

AxisFont

DecrementorVisible

IncrementorColor

Tag

BackColor

DecrementorWidth

IncrementorHeight

ThumbActive

BorderStyle

Description

IncrementorLeft

ThumbCount

Caption

Enabled

IncrementorPicture

Thumbs

CaptionColor

Font3D

IncrementorTop

ToolTipText

CaptionFont

FrameColor

IncrementorVisible

Top

CaptionHeight

FrameHeight

IncrementorWidth

Value

CaptionLeft

FrameLeft

Left

Visible

CaptionTop

FramePicture

Name

WhatsThisHelpID

CaptionWidth

FrameTop

Object

WhatsThisHelpText

DecrementorColor

FrameWidth

StatisticMax

Width

DecrementorHeight

Height

StatisticMean

 

DecrementorLeft

HelpContextID

StatisticMin

 

DecrementorPicture

hWnd

Style

 

Methods

 

InsertThumb

RemoveThumb

ShowHelpContext

Move

ResetStatistic

ShowWhatsThis

Refresh

SetFocus

ZOrder

Events

 

OnChange

OnKeyDown

OnMouseMove

OnClick

OnKeyPress

OnMouseUp

OnDblClick

OnKeyUp

OnWhatsThisHelp

OnGotFocus

OnLostFocus

 

OnHelpContext

OnMouseDown

 

Constants

enumASliderStyle

Comments

Slider controls are useful when you want to select a discrete value. For example, you could use a slider to set the size of a displayed image by moving the slider to a given tick mark rather than by typing a number.

The value of the ASlider can be changed by dragging the scroll box or clicking on the arrows or by using the keyboard arrow keys, page down page up (similar to clicking between the arrow and the box), home and end keys. The slider position is proportional and is determined by ThumbValue property.

See also

AAxis, AScrollBar, ASwitch, AThumb