Description

The ASwitch control is a push button with enhanced style and mode features. The style can be as a toggle, a slide, an LED (light emitting diode appearance), push button, custom bitmap button, etc. The mode can be as an indicator, 'switch when pressed', and 'switched when released'.

Properties

 

BackColor

HelpContextID

OffTextLeft

PictureLeft

Cancel

hWnd

OffTextTop

PictureTop

Caption

Image

OffTextWidth

PictureWidth

CaptionColor

Left

OnPicture

Style

CaptionFont

Mode

OnPictureColor

TabStop

CaptionHeight

Name

OnText

Tag

CaptionLeft

Object

OnTextColor

ToolTipText

CaptionTop

OffPicture

OnTextFont

Top

CaptionWidth

OffPictureColor

OnTextHeight

Value

Description

OffText

OnTextLeft

Visible

Enabled

OffTextColor

OnTextTop

WhatsThisHelpID

Font3D

OffTextFont

OnTextWidth

WhatsThisHelpText

Height

OffTextHeight

PictureHeight

Width

Methods

 

Move

SetFocus

ShowWhatsThis

Refresh

ShowHelpContext

ZOrder

Events

 

OnChange

OnHelpContext

OnLostFocus

OnWhatsThisHelp

OnClick

OnKeyDown

OnMouseDown

 

OnDblClick

OnKeyPress

OnMouseMove

 

OnGotFocus

OnKeyUp

OnMouseUp

 

Constants

 

enumASwitchMode

enumASwitchStyle

enumASwitchValue

Comments

The value can be changed by clicking on the "OnText" or "OffText" words.

See also

AButton, AScrollBar, ASlider