Solved

Scrolling a RichEdit

Posted on 1998-06-23
2
319 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
[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
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: 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

Suggested Solutions

Title # Comments Views Activity
Delphi Spellcheck in Webbrowser 1 50
Working with hours 3 74
Delphi: Connect to running MS Outlook 4 165
SQL Server Express automatically execute SQL or SP 8 35
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…
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…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

733 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