Cancel Property

Applies to TestComplete 15.62, last modified on March 19, 2024

Specifies a form’s button as a cancel button.

Declaration

componentObj.Cancel
Read-Write Property Boolean
componentObj     One of the user forms components listed in the Applies To section  

Applies To

The property applies to the following components:

TcxButton

Description

The Cancel property specifies whether a button on a form is a cancel button, that is, if the user presses Esc, the button’s OnClick event occurs.

The form can have more than one cancel button, but the OnClick event handler is called only for the first visible button in the tab order.

Property Value

True, if the given button is the form’s cancel button; False otherwise.

See Also

Default Property (TcxButton)
ModalResult Property
OnClick Event

Highlight search results