GetBestFittingSize --> GetEffectiveMinSize
SetBestFittingSize --> SetInitialSize SetBestSize --> SetInitialSize SetInitialBestSize --> SetInitialSize git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42816 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -146,7 +146,7 @@ bool wxChoice::Create( wxWindow *parent, wxWindowID id,
|
||||
m_parent->DoAddChild( this );
|
||||
|
||||
PostCreation(size);
|
||||
SetBestSize(size); // need this too because this is a wxControlWithItems
|
||||
SetInitialSize(size); // need this too because this is a wxControlWithItems
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -283,7 +283,7 @@ bool wxComboBox::Create( wxWindow *parent, wxWindowID id, const wxString& value,
|
||||
gtk_signal_connect_after( GTK_OBJECT(combo->list), "select-child",
|
||||
GTK_SIGNAL_FUNC(gtk_combo_select_child_callback), (gpointer)this );
|
||||
|
||||
SetBestSize(size); // need this too because this is a wxControlWithItems
|
||||
SetInitialSize(size); // need this too because this is a wxControlWithItems
|
||||
|
||||
// This is required for tool bar support
|
||||
// wxSize setsize = GetSize();
|
||||
|
||||
@@ -83,7 +83,7 @@ void wxControl::PostCreation(const wxSize& size)
|
||||
gtk_widget_ensure_style(m_widget);
|
||||
|
||||
ApplyWidgetStyle();
|
||||
SetInitialBestSize(size);
|
||||
SetInitialSize(size);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
@@ -52,7 +52,7 @@ bool wxGauge::Create( wxWindow *parent,
|
||||
m_parent->DoAddChild( this );
|
||||
|
||||
PostCreation(size);
|
||||
SetBestSize(size);
|
||||
SetInitialSize(size);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -558,7 +558,7 @@ bool wxListBox::Create( wxWindow *parent, wxWindowID id,
|
||||
m_parent->DoAddChild( this );
|
||||
|
||||
PostCreation(size);
|
||||
SetBestSize(size); // need this too because this is a wxControlWithItems
|
||||
SetInitialSize(size); // need this too because this is a wxControlWithItems
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user