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

2015-05-20 Thread FreeMan

on osx qtx64, fpclazarus 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:=1;
{$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


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

2015-05-12 Thread Graeme Geldenhuys
On 2015-05-12 16:18, 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/

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


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

2015-05-12 Thread John Landmesser
for windows this code works ok, but no success for Linux, GTK:



  (* Memo2 ans Ende scrollen *)
  {IFDEF LINUX}

  // that doesnt work:
   Memo2.SelStart:=Length(Memo2.lines.Text);
   Memo2.VertScrollBar.Position:=1;
  {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


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


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

2015-05-12 Thread 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:=1;
{$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