X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6762286db6cf974817dead5b88bebf0e390dbb7e..43ff861df48f0837dac98005dd397c5f127ca136:/include/wx/osx/scrolbar.h diff --git a/include/wx/osx/scrolbar.h b/include/wx/osx/scrolbar.h index cd32595315..0a5d126801 100644 --- a/include/wx/osx/scrolbar.h +++ b/include/wx/osx/scrolbar.h @@ -46,14 +46,15 @@ public: virtual void SetScrollbar(int position, int thumbSize, int range, int pageSize, bool refresh = true); - // implementation only from now on + // needed for RTTI + void SetThumbSize( int s ) { SetScrollbar( GetThumbPosition() , s , GetRange() , GetPageSize() , true ) ; } + void SetPageSize( int s ) { SetScrollbar( GetThumbPosition() , GetThumbSize() , GetRange() , s , true ) ; } + void SetRange( int s ) { SetScrollbar( GetThumbPosition() , GetThumbSize() , s , GetPageSize() , true ) ; } + + // implementation only from now on void Command(wxCommandEvent& event); -#if wxOSX_USE_CARBON - virtual void MacHandleControlClick( WXWidget control , - wxInt16 controlpart , - bool mouseStillDown ) ; -#endif - virtual bool HandleClicked( double timestampsec ); + virtual void TriggerScrollEvent( wxEventType scrollEvent ) ; + virtual bool OSXHandleClicked( double timestampsec ); protected: virtual wxSize DoGetBestSize() const;