Showing the BOTTOM of TMemo text

Posted on 2003-11-06
Last Modified: 2010-04-05
I have a TMemo with a lot of text already loaded into it, so that it has a scrollbar when it appears to the user. Is there some quick way I can have the BOTTOM of the text visible, with the scrollbar pushed all the way down of course, when the user first sees the TMemo?

Question by:MartinC

Accepted Solution

Ray_Adams earned 60 total points
ID: 9699344
Use this toi scrol to the end of Memo control.
LVL 27

Expert Comment

ID: 9699367

procedure TForm1.Button2Click(Sender: TObject);
  memo1.SelStart := length(memo1.Text);  //caret to end
  memo1.Perform(EM_SCROLLCARET,0,0)      //caret in view

meikl ;-)

Author Comment

ID: 9699391
Thanks Ray ... it worked. kretschmar's prolly does too, but Ray's is first.


Funny how every time I think there MUST be a native Delphi command to do something it turns out there isn't!


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

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…
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…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

867 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

21 Experts available now in Live!

Get 1:1 Help Now