rely on built-in best size...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28028 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -35,12 +35,12 @@ bool wxGauge::Create(wxWindow *parent, wxWindowID id,
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
wxSize size = s ;
|
wxSize size = s ;
|
||||||
|
/*
|
||||||
if ( size.x == wxDefaultSize.x && size.y == wxDefaultSize.y)
|
if ( size.x == wxDefaultSize.x && size.y == wxDefaultSize.y)
|
||||||
{
|
{
|
||||||
size = wxSize( 200 , 16 ) ;
|
size = wxSize( 200 , 16 ) ;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
Rect bounds = wxMacGetBoundsForControl( this , pos , size ) ;
|
Rect bounds = wxMacGetBoundsForControl( this , pos , size ) ;
|
||||||
m_peer = new wxMacControl() ;
|
m_peer = new wxMacControl() ;
|
||||||
verify_noerr ( CreateProgressBarControl( MAC_WXHWND(parent->MacGetTopLevelWindowRef()) , &bounds ,
|
verify_noerr ( CreateProgressBarControl( MAC_WXHWND(parent->MacGetTopLevelWindowRef()) , &bounds ,
|
||||||
|
Reference in New Issue
Block a user