Solved

Scroll TRichEdit to last line.

Posted on 2000-04-30
2
211 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

863 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now