Solved

Scrolling a RichEdit

Posted on 1998-06-23
2
313 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

759 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

20 Experts available now in Live!

Get 1:1 Help Now