[Lazarus] Forcing TMemo to dislplay last entry

Richard Mace richard.mace at gmail.com
Fri Apr 25 20:37:27 CEST 2014


Hi both,
Thanks for the quick responses :)

Richard


On 25 April 2014 18:46, Howard Page-Clark <hdpc at talktalk.net> wrote:

> On 25/04/2014 18:30, Richard Mace wrote:
>
>> I have some code that populates a TMemo via TMemo.Text := 'lots of lines
>> of text..' and need a cross platform way of programatically forcing the
>> TMemo to display the last entry as if the user has had manually scrolled
>> to the bottom.
>>
>
> You can also use
>
> Memo1.SelStart:=Length(Memo1.Text);
>
> Howard
>
>
>
> --
> _______________________________________________
> 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/20140425/80f89bb0/attachment-0003.html>


More information about the Lazarus mailing list