[wxPython-users] RE: BufferedDC for ScrolledWindow
Christopher Barker
Chris.Barker at noaa.gov
Tue Nov 21 09:56:20 PST 2006
Wynand Singels wrote:
> There still a bit of a problem. If the user starts dragging a rubberband box
> and reaches the edge of the window, then the scrolledwindow takes over and
> starts a scroll which then throws off the sequence for the rubberband box.
> Atleast this happens if I capture the mouse.
That's odd -- I would think capturing the mouse would prevent this.
> If I don't capture the mouse
> the window doesn't scroll, so I guess I have to decide how much it's worth
> trying to fix it.
I haven't done this in a scrolled window, so I'm not sure what would
work best. If you post a small-as-possible example app, I'll try it out.
You might also want to consider using "panning", rather than scrolling
for moving around your image. That means having a "hand" tool, that,
when selected you can grab the image and drag it around in the Window. I
find that an easier way to navigate things like this.
See the FloatCanvas demo for an example.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
More information about the wxpython-users
mailing list