X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0faf03bf97720044ae71c72beb4f995425ea174d..8383e673b1d839548b7336947a61fa699eeb6621:/src/osx/scrolbar_osx.cpp diff --git a/src/osx/scrolbar_osx.cpp b/src/osx/scrolbar_osx.cpp index 22c25b2f19..e0cdcfe752 100644 --- a/src/osx/scrolbar_osx.cpp +++ b/src/osx/scrolbar_osx.cpp @@ -4,7 +4,7 @@ // Author: Stefan Csomor // Modified by: // Created: 1998-01-01 -// RCS-ID: $Id: scrolbar.cpp 54129 2008-06-11 19:30:52Z SC $ +// RCS-ID: $Id$ // Copyright: (c) Stefan Csomor // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -21,7 +21,7 @@ #include "wx/osx/private.h" -IMPLEMENT_DYNAMIC_CLASS(wxScrollBar, wxControl) +#if wxUSE_SCROLLBAR BEGIN_EVENT_TABLE(wxScrollBar, wxControl) END_EVENT_TABLE() @@ -39,7 +39,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 +72,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 +174,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