If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
- I live to help wx-kind
- Posts: 187
- Joined: Sun Jan 30, 2005 2:50 pm
- Location: Heidelberg, Germany
i placed a button on a white background, but there was still a grey border around it. so i called setbackgroundcolour( *wxWHITE ), which got rid of the border, but now the label had a white background..
i looked into the wx source and commented out makeownerdrawn() in the setbackgroundcolour() function:
Code: Select all
bool wxButton::SetBackgroundColour(const wxColour &colour)
if ( !wxControl::SetBackgroundColour(colour) )
// nothing to do
now it works the way it should..
Windows 7 Pro
Visual Studio 2010
- Posts: 3971
- Joined: Fri Aug 27, 2004 9:38 pm
- Location: Delft, Netherlands
You should submit this as a patch to the SF bugtracker. It seems to be a bug, clearly.
- In need of some credit
- Posts: 9
- Joined: Thu Jun 29, 2006 8:32 am
Is this really a proper fix though? And why do I need to call this on every button?
What if I want to change the color of the button itself. With this hack, that can't be done anymore.