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
(
"%s alignment flag %s has no effect inside "
"a %s box sizer, remove it and consider setting "
"the item proportion instead",
"a %s box sizer, remove it and consider inserting "
"a spacer instead",
orientName[orient],
flagDesc,
orientName[orient]