I'm trying to build a ScrolledWindow that you can draw on using the mouse, and it's working too, but I'm getting a nasty flicker when the user is drawing on the window while the scrollbars aren't in the "home" position..
To reproduce, run the attached program, scroll a bit down (or to the right) and "doodle" a bit by keeping the left mouse button pressed. You should see a flickering now and then..
I tried using SetBackgroundStyle(wx.BG_STYLE_CUSTOM), or binding EVT_ERASE_BACKGROUND, or using RefreshRect instead of Refresh, but the flicker is still there.. Any idea on what I might try next?
Well I think I *could* use FloatCanvas.. I haven't used it before
though, does it allow for scrollbars or is it supposed to work with
the zooming/panning toolbar, without scrollbars?
Well I think I *could* use FloatCanvas.. I haven't used it before
though, does it allow for scrollbars or is it supposed to work with
the zooming/panning toolbar, without scrollbars?
FloatCanvas itself could work fine with scrollbars, though no one has written that code yet -- it does come with the zooming/panning system, though.
That's because I like panning much better -- scroll bar annoy me for this sort of thing -- mainly for stuff that can be any unknown size.
But as an example, I like InkScape a lot -- but find the scrollbar navigation really annoying -- I really wish hit had a pan mode.
-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