Lazarus
Programming => LCL => Topic started by: AlexTP on February 26, 2019, 08:48:29 am
-
Lazarus 2.1 trunk. Win10 x32.
Last visible line in Memo hides when it cannot fully fit by height. Expected: line is partially painted. How to make it OK?
-
it would be my guess if you enabled the "Smooth" in the scrollbars it may work?
-
Lazarus 2.1 trunk. Win10 x32.
Last visible line in Memo hides when it cannot fully fit by height. Expected: line is partially painted. How to make it OK?
What does notepad do on the same system and the same font and size? It may also be the underlying Windows Edit control itself. On win32 Tmemo is simply an encapsulation of the Windows Edit control. (not richedit)
-
Last visible line in Memo hides when it cannot fully fit by height. Expected: line is partially painted. How to make it OK?
Standard TMemo does not display partial lines.
By using EM_GETRECT and EM_SETRECT you can change formatting-rectangle (https://docs.microsoft.com/en-us/windows/desktop/Controls/about-edit-controls#changing-the-formatting-rectangle), but it will be ugly, when the cursor is under the visible line.
-
And I also found the same answer (EDIT don't support this) on stackoverflow.