X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7e59b88579c7a1e8b4da0827be75dc5d2a84ec73..b5fe7ca67bf3121959a0b5a59afd00c1708f2f03:/interface/wx/spinctrl.h diff --git a/interface/wx/spinctrl.h b/interface/wx/spinctrl.h index a2eb52078f..80701178c3 100644 --- a/interface/wx/spinctrl.h +++ b/interface/wx/spinctrl.h @@ -24,7 +24,7 @@ @endStyleTable - @beginEventTable{wxSpinEvent} + @beginEventEmissionTable{wxSpinEvent} @event{EVT_SPINCTRL(id, func)} Generated whenever the numeric value of the spinctrl is updated @endEventTable @@ -79,25 +79,24 @@ public: @see Create() */ - wxSpinCtrl(wxWindow* parent, wxWindowID id = -1, + wxSpinCtrl(wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& value = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxSP_ARROW_KEYS, int min = 0, int max = 100, - int initial = 0, const wxString& name = _T("wxSpinCtrl")); + int initial = 0, const wxString& name = "wxSpinCtrl"); /** Creation function called by the spin control constructor. See wxSpinCtrl() for details. */ - bool Create(wxWindow* parent, wxWindowID id = -1, + bool Create(wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& value = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, - long style = wxSP_ARROW_KEYS, - int min = 0, int max = 100, - int initial = 0, const wxString& name = _T("wxSpinCtrl")); + long style = wxSP_ARROW_KEYS, int min = 0, int max = 100, + int initial = 0, const wxString& name = "wxSpinCtrl"); /** Gets maximal allowable value. @@ -127,7 +126,7 @@ public: @note this is currently only implemented for Windows and generic versions of the control. */ - void SetSelection(long from, long to); + virtual void SetSelection(long from, long to); /** Sets the value of the spin control. Use the variant using int instead.