]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/osx/scrolbar.h
Don't use "Cancel" button in the about dialog of the listctrl sample.
[wxWidgets.git] / include / wx / osx / scrolbar.h
index cd325953156c6b583295abdaa242e9d9b7c9fb73..1fa577a94f2505006d43911acf0b6bbdce6d5414 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        scrollbar.h
+// Name:        wx/osx/scrolbar.h
 // Purpose:     wxScrollBar class
 // Author:      Stefan Csomor
 // Modified by:
@@ -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;