Solved

Scroll TRichEdit to last line.

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

809 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