X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e5e1c40e0224603d4974ff19392f6e11383988b..a90d7e684a686ac02d3b2453d62615511b04cc32:/include/wx/spinctrl.h diff --git a/include/wx/spinctrl.h b/include/wx/spinctrl.h index 6bc0d71f5f..17b013086a 100644 --- a/include/wx/spinctrl.h +++ b/include/wx/spinctrl.h @@ -37,6 +37,9 @@ public: virtual void SetValue(int val) = 0; virtual void SetRange(int minVal, int maxVal) = 0; + // as the wxTextCtrl method + virtual void SetSelection(long from, long to) = 0; + protected: // initialize m_min/max with the default values void Init() { m_min = 0; m_max = 100; } @@ -58,8 +61,10 @@ protected: #include "wx/os2/spinctrl.h" #elif defined(__WXGTK__) #include "wx/gtk/spinctrl.h" -#elif defined(__WXMAC__) +#elif defined(__WXMOTIF__) #include "wx/generic/spinctlg.h" +#elif defined(__WXMAC__) + #include "wx/mac/spinctrl.h" #else // Win16 || !Win #include "wx/generic/spinctlg.h" #endif // platform