Default property


Available for Button objects.

Read/Write at design time
Read/Write at run time

Specifies whether a Button object is the default button or not. It can be one of the following values:

TRUE    Button object is the default button.
FALSE  Button object is not the default button (default).

Only a Button object inside a window may be the default button.


REMARKS
: When a button has the focus, pressing the <Enter> or <Space> keys has the same effect than clicking trhe button. On the other hand, when a Button object is the default button, pressing the <Enter> key is the same than clicking the button even if it does not have the focus, EXCEPT if the focus is got by another Button object.