Solved

Scrolling a RichEdit

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses
Course of the Month3 days, 19 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