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
This commit is contained in:
Vadim Zeitlin
2014-06-12 17:13:50 +00:00
parent 4342174e3f
commit 2b0c073d35
2 changed files with 2 additions and 0 deletions

View File

@@ -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:

View File

@@ -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();
}