Variables
-
- Posts: 4
- Joined: Fri Sep 03, 2010 8:31 am
Variables
How to print a variable in the screen, in the graphic engine not in the console? thank you!
Re: Variables
I strongly recommend reading all the tutorials, it shows how to do all that stuff.RoboWarrior wrote:How to print a variable in the screen, in the graphic engine not in the console? thank you!
Hi!RoboWarrior wrote:
How to print a variable in the screen
By this time, you might have found how to do this. If not, here is how to do this:
Add a static Text to the screen and set your variable as first parameter to the
Code: Select all
addStaticText()
Code: Select all
int i = 20;
stringw text = "This is i:";
text += i;
device->getGUIEnvironment()->addStaticText(text.c_str(),recti(100,50,300,100));