-
June 17th, 2004, 11:58 AM
#1
application autoscroll ???
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!!!
-
June 17th, 2004, 12:41 PM
#2
anybody
-
June 17th, 2004, 12:45 PM
#3
What do you mean by follow the graph ?
-
June 17th, 2004, 01:24 PM
#4
well simply when it fills up the viewable screen to autoscroll and keep going to the right. Making space for itself.
-
June 17th, 2004, 03:09 PM
#5
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|