Member variable XbpActiveXControl():default Foundation

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

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

The instance variable :default determines whether the ActiveX control is the default control of the form it is created in. A form's default control is displayed with special visuals (usually a frame drawn around the control) and represents the default action defined for the form, which is automatically activated whenever the user presses the RETURN key. Normally, a form's default control is a push button such as an "Ok" button. Assigning the value .T. (TRUE) to the :default instance variable designates the ActiveX control as the default 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 :default 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.