[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'StdCtrls' (#lcl)

TCustomMemo.WantReturns

Allows the user to insert Return characters (line breaks) into the text.

Declaration

Source position: stdctrls.pp line 893

public property TCustomMemo.WantReturns : Boolean
  read FWantReturns
  write SetWantReturns
  default True;

Description

The Enter key typically is used to press the default button in a form, so that it cannot be used to add line breaks into the text.

Setting WantReturns to True allows one to enter line breaks, when the control has the focus.

Even if WantReturns is False, CTRL-Enter inserts an line break.

See also

TCustomMemo.WantTabs

  

Allows to enter Tab characters into the text.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.