#include "wx/osx/private.h"
+#if wxUSE_SCROLLBAR
+
IMPLEMENT_DYNAMIC_CLASS(wxScrollBar, wxControl)
BEGIN_EVENT_TABLE(wxScrollBar, wxControl)
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 );
}
ProcessCommand( event );
}
-bool wxScrollBar::OSXHandleClicked( double timestampsec )
+bool wxScrollBar::OSXHandleClicked( double WXUNUSED(timestampsec) )
{
int new_pos = m_peer->GetValue();
window->MacOnScroll( event );
else
HandleWindowEvent( event );
-}
\ No newline at end of file
+}
+
+#endif
\ No newline at end of file