Member variable XbpPushButton():default Foundation

Specifies the pushbutton to be the default button of the form.

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

The instance variable :default determines whether the XbpPushbutton object is the default pushbutton of the modal form it is created in. A modal form is an XbpDialog or XbpCrt object shown using XbpCrt:showModal() or XbpDialog:showModal(), respectively. A modal form's default button is displayed with a special visualization (usually a frame drawn around the button) and represents the default action defined for the form. A default pushbutton usually has a caption such as 'Ok' or 'Confirm' assigned to its :caption instance variable. Selecting such a pushbutton usually initiates an operation such as saving data or returning a value.

If the logical value .T. (TRUE) is assigned to the :default instance variable of an XbpPushbutton object, the code block contained in the :activate callback slot is executed automatically by method :showModal() whenever the user presses the RETURN key.


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.