Trying to use addCheckTool in a tool bar. Using bmp1 and bmp2 expecting
bmp2 would be displayed when the tool button is on. This doesn't work. I
understand Windows seems to handle this it's own way, but is there a workaround ?
Using Python 2.6, wxPython 2.8.9.1, on Windows XP.
Wouldn't be surprised this has already been covered but couldn't find anything than
a post (Jan 30 2007) that says that there would be a method for this in the next
release. So far, I couldn't find that method.
Trying to use addCheckTool in a tool bar. Using bmp1 and bmp2 expecting
bmp2 would be displayed when the tool button is on. This doesn't work. I
understand Windows seems to handle this it's own way, but is there a workaround ?
Using Python 2.6, wxPython 2.8.9.1, on Windows XP.
Wouldn't be surprised this has already been covered but couldn't find anything than
a post (Jan 30 2007) that says that there would be a method for this in the next
release. So far, I couldn't find that method.
I don't think that the Windows toolbar uses the 2nd bitmap for anything anymore. Instead a check tool will draw a box around the tool button when it is in the checked state.
It is possible to swap bitmaps yourself if desired. IIRC you can save a reference to the tool item returned when you add it to the toolbar, and then call the item's SetNormalBitmap method. Just be sure to call Realize again after you do it.