]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/generic/clrpickerg.h
fix wxDEFINE_EVENT_REFERENCE in wxEVENTS_COMPATIBILITY_2_8 case
[wxWidgets.git] / include / wx / generic / clrpickerg.h
index 16fe8413d5cb439636351ee99cd65759c5e58122..ba70b2087cc3d2d9677188d715083a2c391518d4 100644 (file)
 #define _WX_CLRPICKER_H_
 
 #include "wx/button.h"
 #define _WX_CLRPICKER_H_
 
 #include "wx/button.h"
+#include "wx/bmpbuttn.h"
 #include "wx/cmndata.h"
 
 //-----------------------------------------------------------------------------
 // wxGenericColourButton: a button which brings up a wxColourDialog
 //-----------------------------------------------------------------------------
 
 #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:
                                                public wxColourPickerWidgetBase
 {
 public:
@@ -70,6 +64,9 @@ public:
 
 
 protected:
 
 
 protected:
+    wxBitmap    m_bitmap;
+
+    wxSize DoGetBestSize() const;
 
     void UpdateColour();
 
 
     void UpdateColour();