-#include "wx/osx/uma.h"
-
-bool wxGauge::Create( wxWindow *parent,
- wxWindowID id,
- int range,
- const wxPoint& pos,
- const wxSize& s,
- long style,
- const wxValidator& validator,
- const wxString& name )
-{
- m_macIsUserPane = false;
-
- if ( !wxGaugeBase::Create( parent, id, range, pos, s, style & 0xE0FFFFFF, validator, name ) )
- return false;
-
- wxSize size = s;
-
-#if 0
- if (size.x == wxDefaultCoord && size.y == wxDefaultCoord)
- size = wxSize( 200 , 16 );
-#endif
-
- Rect bounds = wxMacGetBoundsForControl( this, pos, size );
- m_peer = new wxMacControl( this );
- OSStatus err = CreateProgressBarControl(
- MAC_WXHWND(parent->MacGetTopLevelWindowRef()), &bounds,
- GetValue(), 0, GetRange(), false /* not indeterminate */, m_peer->GetControlRefAddr() );
- verify_noerr( err );
-
- if ( GetValue() == 0 )
- m_peer->SetData<Boolean>( kControlEntireControl, kControlProgressBarAnimatingTag, (Boolean)false );
-
- MacPostControlCreate( pos, size );
-
- return true;
-}
-
-void wxGauge::SetRange(int r)