Dialog Editor corrections, wxListBox::GetSelections correction

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7376 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2000-05-10 17:39:35 +00:00
parent 5a6d3ec3b1
commit 804a3434d6
6 changed files with 30 additions and 6 deletions

View File

@@ -2776,11 +2776,19 @@ bool wxResourceManager::ChangeOldToNewResource(wxItemResource* parent, wxItemRes
res->SetType(wxT("wxDialog"));
if (itemType == wxT("wxDialogBox") || itemType == wxT("wxDialog"))
res->SetSize(res->GetX(), res->GetY(), res->GetWidth(), res->GetHeight() + s_increaseDialogSize );
{
// Only change the height if it has a caption, i.e. it's going to be
// used as a proper dialog and not a panel
if (res->GetStyle() & wxCAPTION)
res->SetSize(res->GetX(), res->GetY(), res->GetWidth(), res->GetHeight() + s_increaseDialogSize );
}
if (s_useSystemDefaultsAlways)
res->SetResourceStyle(res->GetResourceStyle() | wxRESOURCE_USE_DEFAULTS);
if (res->GetValue1())
res->SetStyle(res->GetStyle() | wxDIALOG_MODAL);
wxNode *node = res->GetChildren().First();
while (node)
{