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

# TMemo

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

TMemo - a box for entry or display of multiple lines of text

## Declaration

Source position: stdctrls.pp line 890

`type TMemo = class(TCustomMemo)`
`published`
`property Align;` |  | Used to align the control to the top, bottom, left or right of its client.
`property Alignment;` |  | Alignment - whether text is centered, left- or right-justified
`property Anchors;` |  | The set of anchor definitions for this control
`property BidiMode;` |  | BiDiMode - enabling bi-directional writing
`property BorderSpacing;` |  | Determines the border spacing for this control
`property BorderStyle;` |  | BorderStyle - none, or single
`property Color;` |  | Determine the colour for the current control
`property Constraints;` |  | Determine Constraints (max and min height and width) for this control
`property DragCursor;` |  | DragCursor - the style of cursor to be used during the Drag process
`property DragKind;`
`property DragMode;` |  | DragMode - whether manual or automatic
`property Enabled;` |  | Whether the control is Enabled. If not, it usually appears 'greyed-out'
`property Font;` |  | The Font to be used for text in this control
`property Lines;` |  | Lines : an array of strings (single lines of characters) which contains the text held or being entered in the Memo
`property MaxLength;` |  | MaxLength : maximum length allowed for text string
`property OnChange;` |  | OnChange - event handler for any change in text
`property OnClick;` |  | Event Handler for mouse click
`property OnContextPopup;` |  | Event handler to supply information when a context-sensitive pop-up menu is required
`property OnDblClick;` |  | Event Handle for mouse double-click
`property OnDragDrop;` |  | Event handler for the Drag-Drop manoeuvre
`property OnDragOver;` |  | Event handler for the case when a control is dragged over another control
`property OnEditingDone;` |  | Event handler when editing is done
`property OnEndDrag;` |  | Event handler for the end of a dragging process
`property OnEnter;` |  | OnEnter - event handler for when the mouse enters the control, and the control receives focus
`property OnExit;` |  | OnExit - event handler for when the mouse leaves the control and it loses focus
`property OnKeyDown;` |  | OnKeyDown - event handler for instance when key is down while control has focus
`property OnKeyPress;` |  | OnKeyPress - event controller for a key being pressed while the control has focus. To properly handle national chars use UTF8KeyPress instead.
`property OnKeyUp;` |  | OnKeyUp - event handler for instance when a key is up (not pressed) while the control has focus
`property OnMouseDown;` |  | Event handler for when a mouse button is pressed down
`property OnMouseEnter;` |  | Event handler for when the mouse enters the area of the current control
`property OnMouseLeave;` |  | Event handler for when the mouse leaves the area of the current control
`property OnMouseMove;` |  | Event handler for mouse movement within the current control
`property OnMouseUp;` |  | Event handler for when the mouse button is released, ie "up"
`property OnMouseWheel;` |  | OnMouseWheel - event handler for a movement of the mouse wheel
`property OnMouseWheelDown;` |  | OnMouseWheelDown - event handler for downward movement of mouse wheel
`property OnMouseWheelUp;` |  | OnMouseWheelUp - event handler for upward movement of mouse wheel
`property OnStartDrag;` |  | Event handler for start of dragging process
`property OnUTF8KeyPress;` |  | UTF8KeyPress - event controller for a key being pressed while the control has focus.
`property ParentBidiMode;` |  | ParentBiDiMode - does the control follow the BiDiMode settings of its parent?
`property ParentColor;` |  | ParentColor - should the control have the same colour as the parent? Default is true
`property ParentFont;` |  | ParentFont - should the control use the same font as the parent? Default is true
`property PopupMenu;` |  | PopupMenu - a context-sensitive menu that pops up when the right mouse button is clicked over this control
`property ParentShowHint;` |  | ParentShowHint - does the control adopt the same hinting behaviour as its parent? Default is true
`property ReadOnly;` |  | ReadOnly - the contents of the edit box may only be read, not written or erased
`property ScrollBars;` |  | Whether the Memo has ScrollBars - none, horizontal or vertical or both, or automatically placed if needed
`property ShowHint;` |  | Flag to determine: Is hint to be displayed for this control?
`property TabOrder;` |  | The place this control occupies in the list of tabs
`property TabStop;` |  | Is the control in the sequence of controls accessed by successive presses of the Tab key?
`property Visible;` |  | Visible - can the control be seen?
`property WantReturns;` |  | Whether Return characters are required to be included in the memo
`property WantTabs;` |  | Whether Tab characters are required to be retained in the Memo
`property WordWrap;` |  | Is WordWrap enabled, allowing long words to be carried on to the next line?
`end;`

## Inheritance

`TMemo` |  | TMemo - a box for entry or display of multiple lines of text
`TCustomMemo` |  | TCustomMemo : the base class for TMemo
`TCustomEdit` |  | TCustomEdit : the base type from which the TEdit Box is derived.
`TWinControl` |  | TWinControl - the base class for all windowed controls
`TControl` |  | TControl - the main ancestor class for visual controls.
`TLCLComponent`
?
`TObject`

## Description

TMemo - a box for entry or display of multiple lines of text.

The textual data is held as an array of strings in Lines, where it can be edited

## See also

HowToUseStdCtrls |  | How to use StdCtrls, ComCtrls or ExtCtrls

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