Returns or sets whether the control can receive the ENTER key when it is pressed while the parent form has the focus.
Object.Default [ = bDefault ]
The Default property syntax has the following parts:
Name |
Type |
Description |
Object |
A control |
A control object |
bDefault |
Bool |
A boolean expression that specifies whether the control can receive the ENTER key when it is pressed while the parent form has the focus. |
bDefault can be one of the following:
Value |
Description |
True * |
The control is the default push button. |
False |
The control is not the default push button. |
This property is assigned by ATEasy to controls that act like buttons.
If the focus is in an AButton control than the control gets the OnClick event when hitting ENTER.
If the focus is in any other control type and you hit the ENTER key than it goes to the default AButton control which receives an OnClick event.
Only one control in a form can have the Default property set to True at a time. Setting a control Default property to True will set the other control with Default set as True to False.