From: Václav Slavík Date: Tue, 15 Aug 2000 21:44:26 +0000 (+0000) Subject: added 'centered' property to wxDialog handler X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b6b0af42a0d7281a1403f0a4a6e52a43042c405c?hp=019faef468c1558315586be8f9071acbdbc6a385 added 'centered' property to wxDialog handler git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8110 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/contrib/src/xml/xh_dlg.cpp b/contrib/src/xml/xh_dlg.cpp index a05fb8e0bf..0347787f08 100644 --- a/contrib/src/xml/xh_dlg.cpp +++ b/contrib/src/xml/xh_dlg.cpp @@ -62,6 +62,9 @@ wxObject *wxDialogXmlHandler::DoCreateResource() CreateChildren(dlg); + if (GetBool(_("centered"), FALSE)) + dlg->Centre(); + return dlg; } diff --git a/contrib/utils/wxrcedit/df/dialog.df b/contrib/utils/wxrcedit/df/dialog.df index ee5ae8be99..cdc527dfd0 100644 --- a/contrib/utils/wxrcedit/df/dialog.df +++ b/contrib/utils/wxrcedit/df/dialog.df @@ -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