I'm using wxPython 2.5.1.5 on a win2000 machine. I have troubles
with the first button in a toolbar, which does not react on mouse events
in the right way. In particular, the ability to press the button
depends on the area at which the mouse points. It is only possible to
press the button, when being near the border of the button itself.
In short the code:
tb = wxToolbar(parent,-1,style=wxTB_HORIZONTAL|wxNO_BORDER|wxTB_FLAT)
tb.SetToolBitmapSize((16,16))
tb.AddSimpleTool(...,...)
etc.
tb.Realize()
Does anybody else has observed such an behaviour ?? Is there a workaround ?
I'm using wxPython 2.5.1.5 on a win2000 machine. I have troubles
with the first button in a toolbar, which does not react on mouse events
in the right way. In particular, the ability to press the button
depends on the area at which the mouse points. It is only possible to
press the button, when being near the border of the button itself.
In short the code:
tb = wxToolbar(parent,-1,style=wxTB_HORIZONTAL|wxNO_BORDER|wxTB_FLAT)
tb.SetToolBitmapSize((16,16))
tb.AddSimpleTool(...,...)
etc.
tb.Realize()
Does anybody else has observed such an behaviour ?? Is there a workaround ?
Is it possible that there is some other window (not layed out correctly and so is positioned at the upper left of the frame) that is intercepting the mouse events? Sometimes it may not be visible if the z-order is confused, but it still gets in the way of mouse events.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!