X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ec376c8fd9ff813392030426acd2317c6fa6527e..da8b1d4b3b535aba94d04494f5b6e2b3e47901ee:/include/wx/generic/clrpickerg.h diff --git a/include/wx/generic/clrpickerg.h b/include/wx/generic/clrpickerg.h index 5ec73c7fe1..ba70b2087c 100644 --- a/include/wx/generic/clrpickerg.h +++ b/include/wx/generic/clrpickerg.h @@ -12,20 +12,15 @@ #ifndef _WX_CLRPICKER_H_ #define _WX_CLRPICKER_H_ -class WXDLLIMPEXP_CORE wxColourData; +#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: @@ -69,6 +64,9 @@ public: protected: + wxBitmap m_bitmap; + + wxSize DoGetBestSize() const; void UpdateColour();