CGUITextBox, scrolling, static text.
-
- Posts: 1029
- Joined: Thu Apr 06, 2006 12:45 am
- Location: Tennesee, USA
- Contact:
I initialize my textBox using this code:
but on the screen there is nothing to see...
the variable wtemp is not clear, it has many characters[/code]
Code: Select all
textBox = new CGUITextBox(env->getFont("myfont.xml"),L"",env,rect<s32>(50,120,750,500),0,-1);
textBox->setText(wtemp);
textBox->setScrollbarRight(false);
textBox->setScrollModeLines(false);
textBox->setVisible(true);
the variable wtemp is not clear, it has many characters[/code]
-
- Posts: 1029
- Joined: Thu Apr 06, 2006 12:45 am
- Location: Tennesee, USA
- Contact:
some other things (buttons for example are on the screen), and drawAll() is done!
when I do a wcout << wtemp, the string appears on the console, but when I use it in the program, nothing to see.
when I change the setScrollRightBar to true:
also there is no scroll bar on the screen.
I'm using this to draw a scrollable text to the screen:
http://www.pltg-blacksun.de/yass/downloads/TextBox.rar
when I do a wcout << wtemp, the string appears on the console, but when I use it in the program, nothing to see.
when I change the setScrollRightBar to true:
Code: Select all
textBox->setScrollbarRight(true);
I'm using this to draw a scrollable text to the screen:
http://www.pltg-blacksun.de/yass/downloads/TextBox.rar