[Lazarus] Howto scrolldown a TMemo on Linux by code?
FreeMan
freeman35 at delphiturkiye.com
Wed May 20 09:41:33 CEST 2015
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 at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20150520/3eab357d/attachment-0003.html>
More information about the Lazarus
mailing list