Automatic scrolling edit control
-
I ahev an application that spits data continuously to an edit control in a dialog based MFC app. I cannot seem to get the edit control to keep scrolling with the data as the data reaches the end of the visible box area. Is there a better control or does the edit control have a way to automatically keep up with the data being sent to it so that you do not have to manually use the scroll bar to get to the last piece of data on the screen?
-
I ahev an application that spits data continuously to an edit control in a dialog based MFC app. I cannot seem to get the edit control to keep scrolling with the data as the data reaches the end of the visible box area. Is there a better control or does the edit control have a way to automatically keep up with the data being sent to it so that you do not have to manually use the scroll bar to get to the last piece of data on the screen?
-
I ahev an application that spits data continuously to an edit control in a dialog based MFC app. I cannot seem to get the edit control to keep scrolling with the data as the data reaches the end of the visible box area. Is there a better control or does the edit control have a way to automatically keep up with the data being sent to it so that you do not have to manually use the scroll bar to get to the last piece of data on the screen?
Is your data that comes in line-delimited? If so, use a listbox. Otherwise, you'll need to add the incoming data to the end of the edit control using
SetSel()
andReplaceSel()
, or useLineScroll()
."Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne