X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0faf03bf97720044ae71c72beb4f995425ea174d..345ff9c65b3ef17709785708b224dfcbf5135583:/src/osx/scrolbar_osx.cpp diff --git a/src/osx/scrolbar_osx.cpp b/src/osx/scrolbar_osx.cpp index 22c25b2f19..6767de28b6 100644 --- a/src/osx/scrolbar_osx.cpp +++ b/src/osx/scrolbar_osx.cpp @@ -21,6 +21,8 @@ #include "wx/osx/private.h" +#if wxUSE_SCROLLBAR + IMPLEMENT_DYNAMIC_CLASS(wxScrollBar, wxControl) BEGIN_EVENT_TABLE(wxScrollBar, wxControl) @@ -39,7 +41,7 @@ bool wxScrollBar::Create( wxWindow *parent, if ( !wxControl::Create( parent, id, pos, size, style, validator, name ) ) return false; - + m_peer = wxWidgetImpl::CreateScrollBar( this, parent, id, pos, size, style, GetExtraStyle() ); MacPostControlCreate( pos, size ); @@ -72,7 +74,7 @@ void wxScrollBar::SetScrollbar( int position, m_objectSize = range; int range1 = wxMax( (m_objectSize - m_viewSize), 0 ); - + m_peer->SetMaximum( range1 ); m_peer->SetScrollThumb( position, m_viewSize ); } @@ -174,4 +176,6 @@ void wxScrollBar::TriggerScrollEvent( wxEventType scrollEvent ) window->MacOnScroll( event ); else HandleWindowEvent( event ); -} \ No newline at end of file +} + +#endif \ No newline at end of file