From 2b0c073d35092df97a604453c8ee857c6294142a Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 12 Jun 2014 17:13:50 +0000 Subject: [PATCH] Allow using wxALIGN_CENTER in XRC for wxStaticText. Only wxALIGN_CENTRE was allowed previously in the XRC, while both worked in the code and also even in XRC but for wxSizer alignment. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@76693 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/changes.txt | 1 + src/xrc/xh_sttxt.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/changes.txt b/docs/changes.txt index ee05ed3ff4..ccb6c78b9b 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -607,6 +607,7 @@ All (GUI): - Don't show the dialog twice for colours in wxPropertyGrid (Artur Wieczorek). - Fix handling of custom colours in wxPropertyGrid choices (Artur Wieczorek). - Add "hint" property to wxTextCtrl XRC handler. +- Allow using wxALIGN_CENTER, and not just CENTRE, in XRC for wxStaticText. wxGTK: diff --git a/src/xrc/xh_sttxt.cpp b/src/xrc/xh_sttxt.cpp index da93c2a44c..c5de25804e 100644 --- a/src/xrc/xh_sttxt.cpp +++ b/src/xrc/xh_sttxt.cpp @@ -30,6 +30,7 @@ wxStaticTextXmlHandler::wxStaticTextXmlHandler() XRC_ADD_STYLE(wxST_NO_AUTORESIZE); XRC_ADD_STYLE(wxALIGN_LEFT); XRC_ADD_STYLE(wxALIGN_RIGHT); + XRC_ADD_STYLE(wxALIGN_CENTER); XRC_ADD_STYLE(wxALIGN_CENTRE); AddWindowStyles(); }