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:
Robin Dunn
2006-10-31 08:50:17 +00:00
parent 1e0e7f7d0e
commit 170acdc90e
103 changed files with 173 additions and 199 deletions

View File

@@ -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;
}

View File

@@ -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();

View File

@@ -83,7 +83,7 @@ void wxControl::PostCreation(const wxSize& size)
gtk_widget_ensure_style(m_widget);
ApplyWidgetStyle();
SetInitialBestSize(size);
SetInitialSize(size);
}
// ----------------------------------------------------------------------------

View File

@@ -52,7 +52,7 @@ bool wxGauge::Create( wxWindow *parent,
m_parent->DoAddChild( this );
PostCreation(size);
SetBestSize(size);
SetInitialSize(size);
return true;
}

View File

@@ -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;
}