Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-05

Howto scrolldown a TMemo on Linux by code?

3 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

John Landmesser
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.freepascal.org/pipermail/lazarus/attachments/20150512/46e1100e/attachment.html>

Reply by email

Graeme Geldenhuys
to John Landmesser
John Landmesser wrote
My first post was placed as an answer to "IDE / Editor macros" from Graeme Geldenhuys?

Because you replied to an existing mailing list email and then changed the Subject line. This doesn't change the hierarchy of messages - as you noticed. Add the mailing list email address to your address book of your email client, and then start a _new email_ message.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/

Reply by email

FreeMan
to John Landmesser: for windows this code works ok, but no success for Linux, GTK: (* Memo2 ans Ende scrollen…

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

John Landmesser wrote 24 lines
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 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150520/3eab357d/attachment.html>

Reply by email