in reply to Re^2: Tk: Aligning the items in seperate canvases
in thread Tk: Aligning the items in seperate canvases
In my defense, I was close enough for government work, I had
Of course, your work on zooming gets you an A++.$sc[$i]->xviewMoveto( ($location /$initial_width ); # where I needed $sc[$i]->xviewMoveto( ($location - 400/2)/$initial_width );
This definitely is a snippet to save, since it is a general purpose formula for centering a canvas item in a scrolled window.
|
|---|