[Lazarus] Forcing TMemo to dislplay last entry

Howard Page-Clark hdpc at talktalk.net
Fri Apr 25 19:46:07 CEST 2014


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





More information about the Lazarus mailing list