// 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
/////////////////////////////////////////////////////////////////////////////
#include "wx/osx/private.h"
-IMPLEMENT_DYNAMIC_CLASS(wxScrollBar, wxControl)
+#if wxUSE_SCROLLBAR
BEGIN_EVENT_TABLE(wxScrollBar, wxControl)
END_EVENT_TABLE()
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 );
m_objectSize = range;
int range1 = wxMax( (m_objectSize - m_viewSize), 0 );
-
+
m_peer->SetMaximum( range1 );
m_peer->SetScrollThumb( position, m_viewSize );
}
window->MacOnScroll( event );
else
HandleWindowEvent( event );
-}
\ No newline at end of file
+}
+
+#endif
\ No newline at end of file