API:Vcl.StdCtrls.TMemo.WantReturns
Delphi
property WantReturns: Boolean read FWantReturns write FWantReturns default 1;
C++
__property WantReturns = {default=1};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | Vcl.StdCtrls.pas Vcl.StdCtrls.hpp |
Vcl.StdCtrls | TMemo |
Description
Determines whether the user can insert return characters into the text.
Vcl.StdCtrls.TMemo.WantReturns inherits from Vcl.StdCtrls.TCustomMemo.WantReturns. All content below this line refers to Vcl.StdCtrls.TCustomMemo.WantReturns.
Determines whether the user can insert return characters into the text.
Set WantReturns to true to allow users to enter return characters into the text. Set WantReturns to false to allow the form to handle return characters instead.
For example, in a form with a default button (such as an OK button) and a memo control, if WantReturns is false, pressing Enter chooses the default button. If WantReturns is true, pressing Enter inserts a return character in the text.
Note: If WantReturns is false, users can still enter return characters into the text by pressing Ctrl+Enter.