Solved

Scrolling a RichEdit

Posted on 1998-06-23
2
318 Views
Last Modified: 2013-11-22
Hi All.

When I add a line to a RichEdit, how do I make it scroll down so I can see what I have just added??  Example, the RichEdit can display 11 lines, I add 12, 11 are still show and the new 12th line is hidden.  

Thanks for any help.

Stu.
0
Comment
Question by:Stuart_Johnson
2 Comments
 
LVL 5

Accepted Solution

by:
inter earned 20 total points
ID: 1355519
Hi there
there are several ways, the most trivial of all for specifal edit control message as follows:
Let Memo1 be a memo but it can be any thing compatible with edit(rich edit etc)

PostMessage(Memo1.Handle, EM_LINESCROLL,0,Memo1.Lines.Count-1);

Regards, Igor
0
 
LVL 6

Author Comment

by:Stuart_Johnson
ID: 1355520
Wonderful! Thanks Igor.

Stu.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Suggested Solutions

Title # Comments Views Activity
Magic Software info 18 138
FMX and jaudiotracker playing memory stream 29 85
Dynamically Created Query 3 62
Breakpoint doesn't stop in my variable 3 30
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

790 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