No, it happens for example in the Stop button of the Debugger's toolbar. It is always red, where it should be grayed out when there is no debugging session. Sometimes happens for others buttons, like Search.
It only happens on Windows though.
What's even more strange, is that the compiler's Stop button uses the exact same image file but it works just fine...
I've spent a day tracing through wxWidgets, trying to discern the behavior difference between
the compiler stop toolbar button and the debugger button.
Guess what; there is none. Every line of code executed for one is the same for the other.
The difference has to be in XP when the statement
::SendMessage(GetHwnd(), TB_ENABLEBUTTON,
(WPARAM)tool->GetId(), (LPARAM)MAKELONG(enable, 0));
is issued in tbar95.cpp:void wxToolBar::DoEnableTool(wxToolBarToolBase *tool, bool enable).
So the problem must be in the way XP sees the toolbar bitmap.
So.. I spent another day mangling the toolbar.
If the bitmap is first in the sequence of bitmaps it works correctly.
If the .png is edited in any way, it works in it's own place. I think, because my editing removes the transparency.
I don't know how to put transparency back after editing the .png
So.. there seems to be a solution here.
Anyone have any suggestions as to where I should look next?
thanks
pecan