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:
@@ -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]
|
||||
|
Reference in New Issue
Block a user