X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dba006200f4b262f2381cfcbc2657cd0680502c3..bae90c4cd512c351cc2b4b663e0ac1a649911746:/include/wx/generic/spinctlg.h diff --git a/include/wx/generic/spinctlg.h b/include/wx/generic/spinctlg.h index c442db8e9b..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 -#ifdef __GNUG__ +#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) };