X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/af49c4b8a2d3553e733e71c7dd3911881f4c1a2a..1a33ac8fb0f5e43c89bd698618d554c6f7b8b452:/include/wx/generic/spinctlg.h diff --git a/include/wx/generic/spinctlg.h b/include/wx/generic/spinctlg.h index 1175f102d0..2d4e3e400d 100644 --- a/include/wx/generic/spinctlg.h +++ b/include/wx/generic/spinctlg.h @@ -20,9 +20,9 @@ // without tons of #ifdefs. // ---------------------------------------------------------------------------- -#if wxUSE_SPINBTN +#if wxUSE_SPINBTN -#if defined(__GNUG__) && !defined(__APPLE__) +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma interface "spinctlg.h" #endif @@ -66,6 +66,7 @@ public: void SetValue(int val); void SetValue(const wxString& text); void SetRange(int min, int max); + void SetSelection(long from, long to); // accessors int GetValue() const; @@ -102,7 +103,7 @@ private: // the subcontrols wxTextCtrl *m_text; wxSpinButton *m_btn; - + private: DECLARE_DYNAMIC_CLASS(wxSpinCtrl) };