--
Joshua Griffith
try
Memo1.Lines.Add('test - hahaha');
SendMessage(Memo1.Handle, WM_VSCROLL, SB_LINEDOWN, 0);
except
end;
"Josh Griffith" <jo...@e-josh.com> wrote in message
news:oprq66xo...@newsgroups.borland.com...
Memo1.Lines.Add('MyText');
Memo1.SelStart := Length(Memo1.Text);
I tested briefly, it works but it leaves a blank line at the and.
Sorry but I have no time to try to fix it.
Regards
Paolo
"Josh Griffith" <jo...@e-josh.com> wrote in message
news:oprq66xo...@newsgroups.borland.com...
> How can I have the memo always scroll so that the last line visible is
> selected?
Thanks for the responses. I manages to fix the problem by writing to the
memo in the OnActivate event handler and it scrolls fine. I think my
problem was that the control didn't have focus when I was trying to send it
scroll messages.
--
Joshua Griffith
They scroll down, but not completelly...
"Josh Griffith" <jo...@e-josh.com> escribió en el mensaje
news:oprq74mh...@newsgroups.borland.com...
SendMessage(MemoOut.Handle, WM_VSCROLL, SB_BOTTOM, 0);
"Andrew Ofthesong" <And...@NoSpam.net> escribió en el mensaje
news:3ef8...@newsgroups.borland.com...