Problem with StaticText

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

RoboWarrior
Just popping in
Just popping in
Posts: 4
Joined: Sat Aug 27, 2011 01:45

Problem with StaticText

Postby RoboWarrior » Sat Mar 24, 2012 20:12

I've created a StaticText in CEGUI, but I have a problem with the size of the text showed. I want to resize the text but I don't know how to solve.
This is the code:

Code: Select all

nome = CEGUI::WindowManager::getSingleton().createWindow("TaharezLook/StaticText","NomePlayer" + s);
nome->setText("<No Player>");
nome->setPosition(CEGUI::UVector2(CEGUI::UDim(0.3,0),CEGUI::UDim(dim_due+0.01,0)));
nome->setSize(CEGUI::UVector2(CEGUI::UDim(0.3,0),CEGUI::UDim(0.1,0)));
nome->setProperty("FrameEnabled", "False");


Thank you! :)

RoboWarrior
Just popping in
Just popping in
Posts: 4
Joined: Sat Aug 27, 2011 01:45

Re: Problem with StaticText

Postby RoboWarrior » Sat Mar 24, 2012 20:14

is it possible that maybe I've to change the font utilised with another one with chars resized? :))

User avatar
Kulik
CEGUI Team
Posts: 1382
Joined: Mon Jul 26, 2010 18:47
Location: Czech Republic
Contact:

Re: Problem with StaticText

Postby Kulik » Sat Mar 24, 2012 21:10

Yes, you can't just change size of text in CEGUI, you have to select another with with bigger characters.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 7 guests