I’ve read a lot of old posts about scrolling canvases, read the documentation but still having difficulties. Here’s the scenario:
I am directly drawing a complicated graphic image to a canvas, not a picture. Here’s the simple code which is in the Paint event of the canvas:
[code]g.ScaleX = PS.ScaleX
g.ScaleY = PS.ScaleY
PS.PrintPuzzle(g)[/code]
The scaling is so I can zoom in on the drawing. The PS.PrintPuzzle is the whole complicated drawing set of methods. It works fine except when I try adding this to the Paint event:
Me.Scroll (-scroll2, -scroll1)
I get the drawing followed by the scrolling and a general mess. Do I have to use DrawPicture to get this to work?
Thanks for the replies. (I forgot I had posted the question. Busy weekend.)
I’ll try Antonio’s idea first. I had done, in a previous rendition, a lot of x,y adjusting and it seemed to clunk up the code. But it may be what I need to do.