X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/94fa33a0edde27c4fe11c84ccfeb39f5ba6fa64e..bc55104d9ab0b0b835644f17a152b4fbbfa8c7b9:/include/wx/univ/scrolbar.h diff --git a/include/wx/univ/scrolbar.h b/include/wx/univ/scrolbar.h index 0cc4f2a3d1..e1ec962adf 100644 --- a/include/wx/univ/scrolbar.h +++ b/include/wx/univ/scrolbar.h @@ -99,6 +99,10 @@ public: long numArg = 0, const wxString& strArg = wxEmptyString); + // The scrollbars around a normal window should not + // receive the focus. + virtual bool AcceptsFocus() const; + // wxScrollBar sub elements state (combination of wxCONTROL_XXX) void SetState(Element which, int flags); int GetState(Element which) const; @@ -122,6 +126,9 @@ protected: // event handlers void OnIdle(wxIdleEvent& event); + + // forces update of thumb's visual appearence (does nothing if m_dirty=FALSE) + void UpdateThumb(); // SetThumbPosition() helper void DoSetThumb(int thumbPos); @@ -170,12 +177,12 @@ public: wxStdScrollBarInputHandler(wxRenderer *renderer, wxInputHandler *inphand); - virtual bool HandleKey(wxControl *control, + virtual bool HandleKey(wxInputConsumer *consumer, const wxKeyEvent& event, bool pressed); - virtual bool HandleMouse(wxControl *control, + virtual bool HandleMouse(wxInputConsumer *consumer, const wxMouseEvent& event); - virtual bool HandleMouseMove(wxControl *control, const wxMouseEvent& event); + virtual bool HandleMouseMove(wxInputConsumer *consumer, const wxMouseEvent& event); virtual ~wxStdScrollBarInputHandler();