From RAD Studio API Documentation
Jump to: navigation, search



TMemo = class(TCustomMemo)


class PASCALIMPLEMENTATION TMemo : public TCustomMemo


Type Visibility Source Unit Parent
class public
FMX.Memo FMX.Memo


TMemo is a multiline text editing control, providing text scrolling.

Use TMemo to place a standard multiline edit control on a form. Multiline edit boxes allow the user to enter more than one line of text. They are appropriate for representing large amounts of text.

The text in the memo control can be edited as a whole or line by line.

The characteristics of the text in the memo control can be modified by using, for example, Font, FontColor, or CharCase.

To limit the changes made to the memo control, use properties such as ReadOnly, Enabled, or MaxLength.

When not in focus, TMemo does not draw a selection rectangle even though the user has selected the text. You can verify whether the text is selected by using the SelText property.

Note: When a number of lines in a control is more than can be concurrently shown in the control, then you can use a scroll bar to scroll the text in the control. Notice that on Windows the scroll bar is shown by default. However, on OS X the scroll bar is not shown by default. On OS X, the scroll bar appears when you try to scroll a text using the mouse wheel. To enforce the scroll bar to be shown by default, in the Object Inspector, select the memo control and set the AutoHide to False.

See Also

Code Examples