]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/xml/xh_dlg.cpp
added 'centered' property to wxDialog handler
[wxWidgets.git] / contrib / src / xml / xh_dlg.cpp
index a05fb8e0bfa2092615296ffd4d55eda3b5f3522e..0347787f08eaa537de4158bfa6a495c027f933f9 100644 (file)
@@ -62,6 +62,9 @@ wxObject *wxDialogXmlHandler::DoCreateResource()
 
     CreateChildren(dlg);
     
+    if (GetBool(_("centered"), FALSE))
+        dlg->Centre();
+    
     return dlg;
 }