Hello all,
I want to make sure that I am taking the easy road on this task.
Basically, I have a Canvas subclass with a vertical scrollbar
positioned in a window. I draw in to the Canvas in the Paint event to
dynamically create a document with DrawString. I keep track of the
height and when I am done drawing I set the height of the Canvas to the
calculated height. (Basically the text is a report generated from the
results of a DB query). Now, I want to be able to scroll this. I've
looked at the examples online at some of the resource sites but they
all demonstrate scrolling using a Picture. So the question is, what is
the best approach for this? Should I create a Picture and then draw my
contents to it exactly like I draw on to the Canvas and then do the
scrolling like the examples or is there a more "direct" way to draw to
the Canvas?
thanks in advance,
Michael
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|