Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Scroll TRichEdit to last line.

Posted on 2000-04-30
2
218 Views
Last Modified: 2010-04-04
I have a TRichEdit and I wanna scroll it so the last line is visible using the OnChange event.

Anyone?
0
Comment
Question by:Psylord
2 Comments
 
LVL 3

Accepted Solution

by:
shenqw earned 10 total points
ID: 2765209
procedure TForm1.RichEdit1Change(Sender: TObject);
begin
  RichEdit1.SelStart:=Length(RichEdit1.Lines.Text);
  RichEdit1.Perform(EM_ScrollCaret,0,0);
end;
0
 

Author Comment

by:Psylord
ID: 2765221
Excellent. :)
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used.

790 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question