X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fc7a2a602b4bd9308be21bc07e40a680f483438e..1a33ac8fb0f5e43c89bd698618d554c6f7b8b452:/include/wx/button.h?ds=sidebyside diff --git a/include/wx/button.h b/include/wx/button.h index d4032a3b6c..243487e697 100644 --- a/include/wx/button.h +++ b/include/wx/button.h @@ -48,7 +48,7 @@ WXDLLEXPORT_DATA(extern const wxChar*) wxButtonNameStr; class WXDLLEXPORT wxButtonBase : public wxControl { public: - wxButtonBase() { } + wxButtonBase(); // show the image in the button in addition to the label virtual void SetImageLabel(const wxBitmap& WXUNUSED(bitmap)) { } @@ -60,6 +60,11 @@ public: // on its panel virtual void SetDefault() { } + // Buttons on MSW can look bad if they are not native colours, because + // then they become owner-drawn and not theme-drawn. Disable it here + // in wxButtonBase to make it consistent. + virtual bool ShouldInheritColours() const { return false; } + // returns the default button size for this platform static wxSize GetDefaultSize();