Solved

CEdit auto scrolling

Posted on 2000-05-17
4
263 Views
Last Modified: 2013-11-20
I have a multilined edit box which i send text to with "/r/n" in front of it, this makes the text enter on a new line each time I send it. However, when the text gets to the last line on the dialog it keeps going down where you can't see it. How can i get the edit box to auto scroll down when the text goes off the screen?
0
Comment
Question by:scooter1
  • 2
4 Comments
 
LVL 2

Expert Comment

by:paulburns
ID: 2819835
Do you have the 'Auto VScroll' style set? Look in the properties for the edit box in the dialog editor to check this.
0
 

Author Comment

by:scooter1
ID: 2819862
that does not work
0
 
LVL 3

Accepted Solution

by:
_mb_ earned 20 total points
ID: 2820073
After appending the text you can try to call
m_yourEdit.SetScrollPos(SB_VERT, 100); to scroll to the end of the text.
0
 

Author Comment

by:scooter1
ID: 2822455
Thank you.
0

Featured Post

Independent Software Vendors: 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: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

685 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