At 7:39 PM +0100 3/26/06, Bernard Sunderland wrote:
But I would still like to know why Canvas.scroll doesn't work
It does work, it just doesn't do what you think it does. The
backdrop of the canvas is just that -- the backdrop, not the content.
Canvas.scroll scrolls the content.
Your new approach is correct, but remember to also draw the picture
in its proper position in the Paint event. The best way to do this
is to have a method which draws the picture to a given graphics
context. Call this from Paint (passing in g) as well as from your
scrollbar ValueChanged events (passing in the canvas's .Graphics
property).
Best,
- Joe
--
Joseph J. Strout
joe at strout dot net
_______________________________________________
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>
|