How to scroll to the end of a TMemo or TRichEdit in Delphi

This is a simple one, but I had to look it up.

So, by my self imposed rules, I have to post it.

This text will constantly scroll memo-like-fields to the end.

SendMessage(Memo1.Handle, EM_SCROLLCARET, 0, 0);


This allows you to have an active logging component at the bottom of a form. Proof of concept coming soon.


Add a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.