still support wxNB_XXX and wxADJUST_MINSIZE in XRC files even if they're deprecated at C++ level, not all tools have been updated to not use them any more

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54375 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2008-06-26 12:44:14 +00:00
parent 7f173c3349
commit 249259e753
2 changed files with 6 additions and 2 deletions

View File

@ -40,13 +40,12 @@ wxNotebookXmlHandler::wxNotebookXmlHandler()
XRC_ADD_STYLE(wxBK_TOP);
XRC_ADD_STYLE(wxBK_BOTTOM);
#if WXWIN_COMPATIBILITY_2_6
// provide the old synonyms for these fields as well
XRC_ADD_STYLE(wxNB_DEFAULT);
XRC_ADD_STYLE(wxNB_LEFT);
XRC_ADD_STYLE(wxNB_RIGHT);
XRC_ADD_STYLE(wxNB_TOP);
XRC_ADD_STYLE(wxNB_BOTTOM);
#endif
XRC_ADD_STYLE(wxNB_FIXEDWIDTH);
XRC_ADD_STYLE(wxNB_MULTILINE);

View File

@ -81,6 +81,11 @@ wxSizerXmlHandler::wxSizerXmlHandler()
XRC_ADD_STYLE(wxFIXED_MINSIZE);
XRC_ADD_STYLE(wxRESERVE_SPACE_EVEN_IF_HIDDEN);
// this flag doesn't do anything any more but we can just ignore its
// occurrences in the old resource files instead of raising a fuss because
// of it
AddStyle("wxADJUST_MINSIZE", 0);
// wxWrapSizer-specific flags
XRC_ADD_STYLE(wxEXTEND_LAST_ON_EACH_LINE);
XRC_ADD_STYLE(wxREMOVE_LEADING_SPACES);