Default Property (TcxButton)

Applies to TestComplete 14.0, last modified on January 23, 2019

Specifies if the button is the form’s default button.

Declaration

componentObj.Default
Read-Write Property Boolean
componentObj     One of the user forms components listed in the Applies To section  

Applies To

The property applies to the following components:

TcxButton

Description

The Default property specifies whether a button on a form is the default button, that is, if the user presses Enter, the button’s OnClick event occurs.

The form can have more than one default button, but the OnClick event handler is only called for the first visible button in the tab order.

Property Value

True, if the given button is the form’s default button; False otherwise.

Remarks

The default button may not be activated by Enter if the component that is currently selected on the form accepts and processes the Enter key. For example, if another button is currently selected on the form, Enter will press that button. If a TcxMemo component is currently active and its WantReturns property is set to True, Enter will insert the new line into the component’s text.

See Also

Cancel Property
ModalResult Property
OnClick Event

Highlight search results