Page 1 of 1

Problem about StaticText

Posted: Mon Dec 05, 2005 09:44
by lan
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.

Re: Problem about StaticText

Posted: Mon Dec 05, 2005 11:01
by martignasse
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.

Re: Problem about StaticText

Posted: Mon Dec 05, 2005 11:20
by lindquist

Re: Problem about StaticText

Posted: Mon Dec 05, 2005 13:06
by lan
:D I can do it. Thank you for yours help :D