I'm surprised this hasn't already been posted, but there is a little bug when calling MultiLineEditbox::setText() with a string that exceeds the visible area. When this case occures, the vertical scrollbar is correctly shown, however the word-wrapping is not recalculated to account for the scrollbar being shown. This in turn causes the horizontal scrollbar to display, which is quite ugly
I briefly looked at Window::setText(), which calls MultiLineEditbox::onTextChanged(), which calls MultiLineEditbox::formatText(). I would suggest updating the formatText() function such that after determining the portion of text that fits within the visible area, if there is any remaining text it auto-enables the vertical scrollbar and then re-calculates (calls itself?) the word-wrapping this time taking into account the width of the vertical scrollbar.
For now I've been able to work around it by forcing the vertical scrollbar to be shown before calling setText(), but this isn't really an ideal solution. Ex:
Code: Select all
_pMebox->setShowVertScrollbar(True);
_pMebox->setText(CEGUI::String(cInfo.Text()));
_pMebox->setShowVertScrollbar(False);