on osx qtx64, fpc&lazarus svn
wordwarp := False;
ScrollBars := ssVertical;
When I use "memo1.line.add(); " memo scroll to last line. I'm using this code for fbadmin -> output


On 12.05.2015 18:18, John Landmesser wrote:
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?


--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to