Page 1 of 1

Resize the StaticText window after line-wrap

Posted: Thu Mar 29, 2007 04:20
by ebiztiger
I have the following code which displays a user's input into a static text window. It wraps the line when the text is getting long. Does CEGui has a auto-resize so the hight of the static text window increases when line wraps?

wMsg= getChildWindow("Win/TextMessage");
wMsg->setText(wInput->getText());
wMsg->setProperty("HorzFormatting", "WordWrapLeftAligned");

Thanks.
JW