#include <wx/spinctrl.h>
#include <wx/dynarray.h>
#include <wx/statline.h>
-//#include <wx/toggbutt.h>
+#include <wx/tglbtn.h>
#ifdef __WXMSW__
#if wxUSE_OWNER_DRAWN
int GetMarginY() const { return m_marginY; }
};
-//----------------------------------------------------------------------
-
-// class wxToggleButton : public wxControl {
-// public:
-// wxToggleButton(wxWindow *parent, wxWindowID id, const wxString& label,
-// const wxPoint& pos = wxDefaultPosition,
-// const wxSize& size = wxDefaultSize, long style = 0,
-// const wxValidator& validator = wxDefaultValidator,
-// const char* name = "toggle");
-// void SetValue(bool value);
-// bool GetValue() const ;
-// void SetLabel(const wxString& label);
-// };
-
-// class wxBitmapToggleButton : public wxToggleButton {
-// public:
-// wxBitmapToggleButton(wxWindow *parent, wxWindowID id, const wxBitmap *label,
-// const wxPoint& pos = wxDefaultPosition,
-// const wxSize& size = wxDefaultSize, long style = 0,
-// const wxValidator& validator = wxDefaultValidator,
-// const char *name = "toggle");
-// void SetLabel(const wxBitmap& bitmap);
-// };
-
-
//----------------------------------------------------------------------
class wxCheckBox : public wxControl {
//----------------------------------------------------------------------
+enum { wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, };
+
+class wxToggleButton : public wxControl {
+public:
+ wxToggleButton(wxWindow *parent,
+ wxWindowID id,
+ const wxString& label,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = 0,
+ const wxValidator& validator = wxDefaultValidator,
+ const char* name = "toggle");
+
+ void SetValue(bool value);
+ bool GetValue() const ;
+ void SetLabel(const wxString& label);
+
+};
+
+//----------------------------------------------------------------------
+//----------------------------------------------------------------------
+//----------------------------------------------------------------------
+