Problem about StaticText

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

User avatar
lan
Just popping in
Just popping in
Posts: 10
Joined: Tue Oct 18, 2005 15:13

Problem about StaticText

Postby lan » Mon Dec 05, 2005 09:44

I'v a problem again. I use StaticText class to creat my texts and I can create them, but I want to include some variable values that come from my calculation function. Example my sentence is " My calculation is ...... "
I use :

MyText -> setText( " My calculation is ...... " )

I want to instead of dotted line with my caculation values. What I should do? Could anyone help me, please? Thanks so much.

User avatar
martignasse
Just can't stay away
Just can't stay away
Posts: 227
Joined: Thu Apr 14, 2005 08:10
Location: Lyon, FRANCE

Re: Problem about StaticText

Postby martignasse » Mon Dec 05, 2005 11:01

hi,

You should construct the string by yourself, and update the statictext every time it's necessary(everytime you'r calculation result change).

That said, there is may way to achieve this, depending of you'r specific need.

hope it help.

User avatar
lindquist
CEGUI Team (Retired)
Posts: 770
Joined: Mon Jan 24, 2005 21:20
Location: Copenhagen, Denmark

Re: Problem about StaticText

Postby lindquist » Mon Dec 05, 2005 11:20


User avatar
lan
Just popping in
Just popping in
Posts: 10
Joined: Tue Oct 18, 2005 15:13

Re: Problem about StaticText

Postby lan » Mon Dec 05, 2005 13:06

:D I can do it. Thank you for yours help :D


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 7 guests