X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e40298d54ecd5b109222a7c60aa2ef084a304d69..b77b87881bae2e6306366d79e7fe160334b3d4a2:/src/mac/gauge.cpp diff --git a/src/mac/gauge.cpp b/src/mac/gauge.cpp index 1a61e4f723..01a557e17c 100644 --- a/src/mac/gauge.cpp +++ b/src/mac/gauge.cpp @@ -29,6 +29,9 @@ bool wxGauge::Create(wxWindow *parent, wxWindowID id, const wxValidator& validator, const wxString& name) { + if ( !wxGaugeBase::Create(parent, id, range, pos, s, style, validator, name) ) + return false; + wxSize size = s ; Rect bounds ; Str255 title ; @@ -40,7 +43,7 @@ bool wxGauge::Create(wxWindow *parent, wxWindowID id, size = wxSize( 200 , 16 ) ; } - MacPreControlCreate( parent , id , "" , pos , size ,style & 0xE0FFFFFF /* no borders on mac */ , validator , name , &bounds , title ) ; + MacPreControlCreate( parent , id , wxEmptyString , pos , size ,style & 0xE0FFFFFF /* no borders on mac */ , validator , name , &bounds , title ) ; m_macControl = ::NewControl( MAC_WXHWND(parent->MacGetRootWindow()) , &bounds , title , false , 0 , 0 , range, kControlProgressBarProc , (long) this ) ;