X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/519cb848a8f4c91c73421bb75314754284e593a4..b4d1ebf058c64f5b9e0ddf3264ce8a801eae4f79:/src/mac/carbon/scrolbar.cpp diff --git a/src/mac/carbon/scrolbar.cpp b/src/mac/carbon/scrolbar.cpp index a432b3e9b1..2db4a175bb 100644 --- a/src/mac/carbon/scrolbar.cpp +++ b/src/mac/carbon/scrolbar.cpp @@ -16,13 +16,11 @@ #include "wx/scrolbar.h" #include "wx/mac/uma.h" -#if !USE_SHARED_LIBRARY IMPLEMENT_DYNAMIC_CLASS(wxScrollBar, wxControl) BEGIN_EVENT_TABLE(wxScrollBar, wxControl) END_EVENT_TABLE() -#endif extern ControlActionUPP wxMacLiveScrollbarActionUPP ; @@ -152,6 +150,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); }