From b6b0af42a0d7281a1403f0a4a6e52a43042c405c Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Tue, 15 Aug 2000 21:44:26 +0000 Subject: [PATCH] added 'centered' property to wxDialog handler git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8110 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- contrib/src/xml/xh_dlg.cpp | 3 +++ contrib/utils/wxrcedit/df/dialog.df | 1 + 2 files changed, 4 insertions(+) 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 -- 2.45.2