[Lazarus] Howto scrolldown a TMemo on Linux by code?

John Landmesser jmlandmesser at gmx.de
Tue May 12 17:18:58 CEST 2015


for windows this code works ok, but no success for Linux, GTK:
     (* Memo2 ans Ende scrollen *)
     {$IFDEF LINUX}
      // that doesn't work:
       Memo2.SelStart:=Length(Memo2.lines.Text);
       Memo2.VertScrollBar.Position:=10000;
     {$ELSE }
       // thats ok on windows
       SendMessage(Memo2.Handle, WM_VSCROLL, SB_BOTTOM, 0);
     {$ENDIF}
Lazarus 1.5 r48256 FPC 2.6.4 x86_64-linux-gtk 2

another question:
How does this mailing list know to which question i post an answer?

My first post was placed as an answer to "IDE / Editor macros" from 
Graeme Geldenhuys?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20150512/46e1100e/attachment-0003.html>


More information about the Lazarus mailing list