Paul Sijben wrote:
Robin Dunn wrote:
Paul Sijben wrote:
When I hover over a BitmapButton that was drawn in this way I get the last text blitted onto that space, taking up both the place of the bitmap AND the sizer. So when I then blit the bitmap into it, I am left with a messed up space in the sizer. Also the unwanted bit I seem to be getting overwrites all buttons to the right, so they disappear. The worst bit is that I do not even use an onHover bitmap!
So my question is what happens by default on hover? What can I do so there is no residual DC hanging around with my latest blit in it?
I'm having trouble picturing what it is you are seeing. Can you provide more details, a screenshot and/or a runnable sample?
at this link you find the UI as it is rendered: http://www.perzonae.nl/screenshots/client1.PNG
now when I hover the mouse on the leftmost icon _ that area is rendered with the last blitted text see:
http://www.perzonae.nl/screenshots/client2.PNG
Are you reusing buffer bitmaps anywhere? Is that an actual wx.BitmapButton or some other class? Can you duplicate the problem in a small runnable sample?
···
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!