Improve error message for use of invalid alignment flags in XRC.

Typically to achieve horizontal alignment inside a horizontal sizer a spacer
needs to be inserted before the element, so explicitly say this instead of
advising to set proportion which wouldn't allow aligning the item.
This commit is contained in:
Vadim Zeitlin
2015-04-12 23:24:10 +02:00
parent 5bcfc58d2f
commit e2f43574f4

View File

@@ -699,8 +699,8 @@ int wxSizerXmlHandler::GetSizerFlags()
wxString::Format wxString::Format
( (
"%s alignment flag %s has no effect inside " "%s alignment flag %s has no effect inside "
"a %s box sizer, remove it and consider setting " "a %s box sizer, remove it and consider inserting "
"the item proportion instead", "a spacer instead",
orientName[orient], orientName[orient],
flagDesc, flagDesc,
orientName[orient] orientName[orient]