#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 ;
MacPreControlCreate( parent , id , "" , pos , size ,style, validator , name , &bounds , title ) ;
- m_macControl = UMANewControl( parent->GetMacRootWindow() , &bounds , title , true , 0 , 0 , 100,
+ m_macControl = ::NewControl( parent->MacGetRootWindow() , &bounds , title , true , 0 , 0 , 100,
kControlScrollBarLiveProc , (long) this ) ;
wxASSERT_MSG( m_macControl != NULL , "No valid mac control" ) ;
if ( UMAGetAppearanceVersion() >= 0x0110 )
{
-#if UMA_USE_8_6
+ if ( SetControlViewSize != (void*) kUnresolvedCFragSymbolAddress )
+ {
SetControlViewSize( m_macControl , m_pageSize ) ;
-#endif
+ }
}
Refresh() ;
}
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 :