]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/scrolbar.cpp
wxMac completed so far, generic listctrl extension
[wxWidgets.git] / src / mac / scrolbar.cpp
index a432b3e9b122d7542304fc72e50333712a16c4c8..92d6dd1fafe7b9b1f1c27a2b6774ab810d21420f 100644 (file)
@@ -152,6 +152,13 @@ void wxScrollBar::MacHandleControlClick( ControlHandle control , SInt16 controlp
        }
   event.SetPosition(new_pos);
   event.SetEventObject( this );
-  GetEventHandler()->ProcessEvent(event);
+  wxWindow* window = GetParent() ;
+  if (window && window->MacIsWindowScrollbar(this) )
+  {
+       // this is hardcoded
+       window->MacOnScroll(event);
+  }
+  else
+       GetEventHandler()->ProcessEvent(event);
 }