]> git.saurik.com Git - wxWidgets.git/commitdiff
added 'centered' property to wxDialog handler
authorVáclav Slavík <vslavik@fastmail.fm>
Tue, 15 Aug 2000 21:44:26 +0000 (21:44 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Tue, 15 Aug 2000 21:44:26 +0000 (21:44 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8110 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

contrib/src/xml/xh_dlg.cpp
contrib/utils/wxrcedit/df/dialog.df

index a05fb8e0bfa2092615296ffd4d55eda3b5f3522e..0347787f08eaa537de4158bfa6a495c027f933f9 100644 (file)
@@ -62,6 +62,9 @@ wxObject *wxDialogXmlHandler::DoCreateResource()
 
     CreateChildren(dlg);
     
 
     CreateChildren(dlg);
     
+    if (GetBool(_("centered"), FALSE))
+        dlg->Centre();
+    
     return dlg;
 }
 
     return dlg;
 }
 
index ee5ae8be996b804c43aeb707d9cd868f964b5bf2..cdc527dfd06e72626797bba0809845a7b7b990d3 100644 (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
 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
 derived from panelbase