MouseWheel stuff
Added wxToggleButton other odds and ends git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10015 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
#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
|
||||
@@ -125,31 +125,6 @@ public:
|
||||
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 {
|
||||
@@ -603,5 +578,28 @@ public:
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
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);
|
||||
|
||||
};
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
//----------------------------------------------------------------------
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user