Solved

CEdit auto scrolling

Posted on 2000-05-17
4
266 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
[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
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

Industry Leaders: 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

Suggested Solutions

Title # Comments Views Activity
notReplace  challenge 53 152
VBA "SendKeys" Syntax for Multiple Keystrokes 7 133
java ^ examples 8 72
Notepad++ Question 11 21
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.

740 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