X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8bf3196d66061acb022db8ea07acd15614288b4b..bbf8fc5391b2458d630d29a794df99c8e681e6eb:/include/wx/msw/spinctrl.h diff --git a/include/wx/msw/spinctrl.h b/include/wx/msw/spinctrl.h index 4a5d3d56aa..9a160ff7aa 100644 --- a/include/wx/msw/spinctrl.h +++ b/include/wx/msw/spinctrl.h @@ -58,16 +58,18 @@ public: // ------------------------------- virtual void SetValue(int val) { wxSpinButton::SetValue(val); } - virtual int GetValue() const; + virtual int GetValue() const; virtual bool SetFont(const wxFont &font); + virtual void SetFocus(); virtual bool Enable(bool enable = TRUE); virtual bool Show(bool show = TRUE); + virtual bool AcceptsFocus() const { return TRUE; } + protected: virtual void DoMoveWindow(int x, int y, int width, int height); virtual wxSize DoGetBestSize() const; - virtual void SetFocus(); // the handler for wxSpinButton events void OnSpinChange(wxSpinEvent& event);