WantReturns Property

Applies to TestComplete 15.70, last modified on December 17, 2024

Specifies whether the component accepts Enter to insert the new line into its text.

Declaration

componentPropObj.WantReturns
Read-Write Property Boolean
componentPropObj     One of the objects listed in the Applies To section  

Applies To

The property applies to the following objects:

TcxMemoProperties

Description

The WantReturns property specifies whether Enter is handled by the component or by the form. If WantReturns is true, Enter inserts the new line into the component’s text. If WantReturns is false, Enter activates the default form button.

Property Value

True, if the component accepts Enter; False if Enter is handled by the form.

Remarks

If WantReturns is False, the user can insert the new line into the component’s text via Ctrl+Enter.

See Also

WantTabs Property

Highlight search results