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:
@@ -62,6 +62,9 @@ wxObject *wxDialogXmlHandler::DoCreateResource()
|
|||||||
|
|
||||||
CreateChildren(dlg);
|
CreateChildren(dlg);
|
||||||
|
|
||||||
|
if (GetBool(_("centered"), FALSE))
|
||||||
|
dlg->Centre();
|
||||||
|
|
||||||
return dlg;
|
return dlg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
node dialog
|
node dialog
|
||||||
var title of text
|
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 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
|
||||||
|
Reference in New Issue
Block a user