Solved

Scrolling a RichEdit

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

809 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