X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ad81651f00edc6f489d9b6a0839d316a964fd521..2fe212b0336512aac9eace69fab09ce856b0bf4b:/src/mac/carbon/scrolbar.cpp diff --git a/src/mac/carbon/scrolbar.cpp b/src/mac/carbon/scrolbar.cpp index 2db4a175bb..e9d45ce4e5 100644 --- a/src/mac/carbon/scrolbar.cpp +++ b/src/mac/carbon/scrolbar.cpp @@ -13,14 +13,18 @@ #pragma implementation "scrolbar.h" #endif +#include "wx/defs.h" + #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 ; @@ -80,9 +84,10 @@ void wxScrollBar::SetScrollbar(int position, int thumbSize, int range, int pageS if ( UMAGetAppearanceVersion() >= 0x0110 ) { -#if UMA_USE_8_6 + if ( SetControlViewSize != (void*) kUnresolvedCFragSymbolAddress ) + { SetControlViewSize( m_macControl , m_pageSize ) ; -#endif + } } Refresh() ; } @@ -109,19 +114,19 @@ void wxScrollBar::MacHandleControlClick( ControlHandle control , SInt16 controlp switch( controlpart ) { case kControlUpButtonPart : - nScrollInc = -1; + nScrollInc = -m_pageSize; scrollEvent = wxEVT_SCROLL_LINEUP; break ; case kControlDownButtonPart : - nScrollInc = 1; + nScrollInc = m_pageSize; scrollEvent = wxEVT_SCROLL_LINEDOWN; break ; case kControlPageUpPart : - nScrollInc = -m_pageSize; + nScrollInc = -m_viewSize; scrollEvent = wxEVT_SCROLL_PAGEUP; break ; case kControlPageDownPart : - nScrollInc = m_pageSize; + nScrollInc = m_viewSize; scrollEvent = wxEVT_SCROLL_PAGEDOWN; break ; case kControlIndicatorPart :