Recent

Author Topic: TMemo truncates partially visible last line (Win32)  (Read 2834 times)

AlexTP

  • Hero Member
  • *****
  • Posts: 2384
    • UVviewsoft
TMemo truncates partially visible last line (Win32)
« 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?

jamie

  • Hero Member
  • *****
  • Posts: 6090
Re: TMemo truncates partially visible last line (Win32)
« Reply #1 on: February 27, 2019, 12:26:15 am »
it would be my guess if you enabled the "Smooth" in the scrollbars it may work?
The only true wisdom is knowing you know nothing

Thaddy

  • Hero Member
  • *****
  • Posts: 14197
  • Probably until I exterminate Putin.
Re: TMemo truncates partially visible last line (Win32)
« Reply #2 on: February 27, 2019, 09:02:45 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?
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)
Specialize a type, not a var.

ASerge

  • Hero Member
  • *****
  • Posts: 2222
Re: TMemo truncates partially visible last line (Win32)
« Reply #3 on: February 27, 2019, 03:06:28 pm »
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, but it will be ugly, when the cursor is under the visible line.

AlexTP

  • Hero Member
  • *****
  • Posts: 2384
    • UVviewsoft
Re: TMemo truncates partially visible last line (Win32)
« Reply #4 on: March 01, 2019, 09:05:47 am »
And I also found the same answer (EDIT don't support this) on stackoverflow.

 

TinyPortal © 2005-2018