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