Arkada
24-03-2012 23:14:25
HI everyone !
Is there a special way to activate scrollbars on an Editbox in MyGui ?
Cause i would like to create a multiline editbox with scrollbars who appears when the text exceed the size of the editbox.
I've successfull create the multiline editbox using code, not with xml file, but the scrollbars never appears.
Here is the way i create the widget :
Is someone has an idea ?
Greetings,
Gouwi

Is there a special way to activate scrollbars on an Editbox in MyGui ?
Cause i would like to create a multiline editbox with scrollbars who appears when the text exceed the size of the editbox.
I've successfull create the multiline editbox using code, not with xml file, but the scrollbars never appears.
Here is the way i create the widget :
this->historyBox = this->mainWindow->createWidget<MyGUI::EditBox>("EditBox",0,0,width - 8,height - 60,MyGUI::Align::Stretch,"historyBox");
this->historyBox->setEditReadOnly(true);
this->historyBox->setEditMultiLine(true);
this->historyBox->setVisibleVScroll(true);
this->historyBox->setTextAlign(MyGUI::Align::Top | MyGUI::Align::Left);
this->historyBox->setOverflowToTheLeft(true);
this->historyBox->setTextShadow(true);
Is someone has an idea ?
Greetings,
Gouwi