added 'centered' property to wxDialog handler

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8110 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2000-08-15 21:44:26 +00:00
parent 019faef468
commit b6b0af42a0
2 changed files with 4 additions and 0 deletions

View File

@ -62,6 +62,9 @@ wxObject *wxDialogXmlHandler::DoCreateResource()
CreateChildren(dlg);
if (GetBool(_("centered"), FALSE))
dlg->Centre();
return dlg;
}

View File

@ -1,4 +1,5 @@
node dialog
var title of text
var style of flags wxSTAY_ON_TOP,wxCAPTION,wxDEFAULT_DIALOG_STYLE,wxTHICK_FRAME,wxSYSTEM_MENU,wxRESIZE_BORDER,wxRESIZE_BOX,wxDIALOG_MODAL,wxDIALOG_MODELESS
var centered of bool
derived from panelbase