Cancel Property (ACSwitch)

Returns or sets whether the control receives the ESC key when pressed, when the parent form has the focus.

Syntax

Object.Cancel [ = bCancel ]

The Cancel property syntax has the following parts:

 

Name

Type

Description

Object

ASwitch

ASwitch control

bCancel

Bool

A boolean expression that specifies whether the control receives the ESC key when pressed, when the parent form has the focus.

Where

bCancel can be one of the following:

 

Value

Description

True *

When the parent form has the focus, the control receives the ESC key when pressed.

False

When the parent form has the focus, the control does not receive the ESC key when pressed.

Example

The following statement changes the Switch so it will not receive the ESC key, when the parent form has the focus:

sw1.Cancel=False

Applies to

ASwitch

See Also

ASlider