m_mainFrame->Show(true);
SetTopWindow(m_mainFrame);
-
+
return true;
}
if (useDialog)
{
propDialog = new PropListDialog(view, NULL, _T("Property Sheet Test"),
- wxDefaultPosition, wxSize(400, 500), wxDEFAULT_DIALOG_STYLE|wxDIALOG_MODELESS);
+ wxDefaultPosition, wxSize(400, 500));
m_childWindow = propDialog;
}
else
if (useDialog)
{
propDialog = new PropFormDialog(view, NULL, _T("Property Form Test"),
- wxDefaultPosition, wxSize(380, 250), wxDEFAULT_DIALOG_STYLE|wxDIALOG_MODAL);
+ wxDefaultPosition, wxSize(380, 250));
m_childWindow = propDialog;
}
else
panel->SetConstraints(c);
}
#endif
-
+
// Add items to the panel
wxButton *okButton = new wxButton(panel, wxID_OK, _T("OK"), wxDefaultPosition,
wxSize(80, 26), 0, wxDefaultValidator, _T("ok"));
okButton->SetConstraints(c);
// The name of this text item matches the "fred" property
- wxTextCtrl *text = new wxTextCtrl(panel, wxID_ANY, _T("Fred"), wxDefaultPosition,
- wxSize( 200, wxDefaultSize.y), 0, wxDefaultValidator, _T("fred"));
+ wxTextCtrl *text = new wxTextCtrl(panel, wxID_ANY, _T("Fred"), wxDefaultPosition,
+ wxSize( 200, wxDefaultCoord), 0, wxDefaultValidator, _T("fred"));
c = new wxLayoutConstraints;
c->left.SameAs(panel, wxLeft, 4);