Solved

Showing the BOTTOM of TMemo text

Posted on 2003-11-06
3
267 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
[X]
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
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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…
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…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses
Course of the Month3 days, 23 hours left to enroll

630 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