Hey guys,
I am making a dialog based app. I am drawing a realtime graph which expands more than the width of a window. SO I was wondering what do I need to do to make it autoscroll and actually follow the graph.
Thanks in advance!!!
Printable View
Hey guys,
I am making a dialog based app. I am drawing a realtime graph which expands more than the width of a window. SO I was wondering what do I need to do to make it autoscroll and actually follow the graph.
Thanks in advance!!!
anybody :(
What do you mean by follow the graph ?
well simply when it fills up the viewable screen to autoscroll and keep going to the right. Making space for itself.
Your question was a bit vague, so I will scetch the basic operations.
First you need to cache the data at least one display window wide to repaint the already drawn data in WM_PAINT.
Second you draw the new data as long as you don't reach the right side of the window. When you reach the end of the display area you scroll your window with ScrollWindow - func a bit to the left clear the free area and fill the free area again with your data. This scrolling occures as long as there is something to draw.