FMX TMemo Doesn’t Show Blank Line


I’m working with Delphi 10.2 (Tokyo). The FMX TMemo does not render blank lines. For instance, copy the following and paste it onto the form of a FMX application (Win32 Target).

object Memo1: TMemo
Lines.Strings = (


The 2nd line is not rendered at design-time, or run-time. If a space is typed on the blank line, then the blank line is rendered. It behaves very much like HTML in a web browser (blank lines without a space are not rendered).

Is there a way to cause the TMemo component to render blank lines? Is it as simple as setting the style? If so, how do I do that? (I am very new to FMX.)

I would prefer to not alter the content and add a space to blank lines just to get it to render them. I would rather fix the root issue.

As a second issue, which will be fixed by fixing the first issue, if a user presses Enter in a TMemo field at run-time, it doesn’t move the cursor down to the next line unless they first type a space on the line they want to leave blank. This will be VERY frustrating to users.

Comments are closed.