2.82 .defbutton

This attribute defines a pushbutton as default button.

Definition

  • Data type

    boolean (pushbutton)

    integer (messagebox)

  • Access

    get, set

  • changed event

    yes

The task of the default pushbutton is to select the corresponding object if the user presses the Return key and if the focus is not on a multilined edittext.

Note for Motif

The pushbutton must be in a dialogbox!

messagebox

.defbutton defines which of the three buttons is to be the default button. If the value is not valid because the button is not visible, the window system selects a default button.

If .defbutton is allocated to more than one visible pushbutton, the DM decides which is the default pushbutton. Therefore, only one pushbutton should be defined as default.

See also

Attribute .dialogbox