Member variable XbpActiveXControl():cancel Foundation

Specifies the ActiveX control to be the cancel button of the form.

Attribute: EXPORTED
Data type: Logical (.F.)

The instance variable :cancel determines whether the ActiveX control is the default control defined for cancelling the form it is created in. A form's cancel control represents the default action defined for cancelling the form and is automatically activated whenever the user presses the ESCAPE key. Normally, a form's cancel control is a push button such as a "Cancel" button. Assigning the value .T. (TRUE) to the :cancel instance variable designates the ActiveX control as the cancel control of the form.

The instance variable :default is respected only for ActiveX controls that have the OLECTRL_ACTSLIKEBUTTON flag set in :controlFlags. For other controls, the value assigned to :cancel has no effect.


If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.