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:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user