X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/556151f5ff1bd2fa44de2237a3ad03694c2e3883..3e97a905185a72c04a7feb67c7885ab4412100ee:/include/wx/generic/clrpickerg.h?ds=sidebyside diff --git a/include/wx/generic/clrpickerg.h b/include/wx/generic/clrpickerg.h index dfb67c8fa9..ba70b2087c 100644 --- a/include/wx/generic/clrpickerg.h +++ b/include/wx/generic/clrpickerg.h @@ -13,20 +13,14 @@ #define _WX_CLRPICKER_H_ #include "wx/button.h" +#include "wx/bmpbuttn.h" #include "wx/cmndata.h" //----------------------------------------------------------------------------- // wxGenericColourButton: a button which brings up a wxColourDialog //----------------------------------------------------------------------------- -// show the colour in HTML form (#AABBCC) as colour button label -#define wxCLRBTN_SHOW_LABEL 100 - -// the default style -#define wxCLRBTN_DEFAULT_STYLE (wxCLRBTN_SHOW_LABEL) - - -class WXDLLIMPEXP_CORE wxGenericColourButton : public wxButton, +class WXDLLIMPEXP_CORE wxGenericColourButton : public wxBitmapButton, public wxColourPickerWidgetBase { public: @@ -70,6 +64,9 @@ public: protected: + wxBitmap m_bitmap; + + wxSize DoGetBestSize() const; void UpdateColour();