Solved

Showing the BOTTOM of TMemo text

Posted on 2003-11-06
3
264 Views
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?

Martin
0
Comment
Question by:MartinC
3 Comments
 
LVL 2

Accepted Solution

by:
Ray_Adams earned 60 total points
ID: 9699344
    SendMessage(Memo1.Handle,EM_LINESCROLL,0,Memo1.lines.count);
---
Use this toi scrol to the end of Memo control.
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 9699367
or

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

meikl ;-)
0
 

Author Comment

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

Points!

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

Martin
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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

856 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