Archived

This topic is now archived and is closed to further replies.

TheBlackJester

Numbers in the Status Bar

Recommended Posts

TheBlackJester    142
Hey. I''m coding up the status bar for my editor and I''m running into a problem. I have no trouble setting parts and inserting text, but I can''t seem to figure out how to insert numbers. I would like to display the cursor position and the FPS in the status bar. Thank you.


"With my feet upon the ground I lose myself between the sounds and open wide to suck it in, I feel it move across my skin. I''m reaching up and reaching out. I''m reaching for the random or what ever will bewilder me, what ever will bewilder me. And following our will and wind we may just go where no one''s been. We''ll ride the spiral to the end and may just go where no one''s been." - Maynard James Keenan
Name: TheBlackJester Team: Wildfire Games
Projects O A.D. The Last Alliance

Share this post


Link to post
Share on other sites
Dobbs    164
What exactly is your question? How to convert numerical values to text? If so, what language? If C++, are you using C strings or C++ strings? Etc. Help us out.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
use sprintf() to add the number to the string and then set the string to the status bar

Share this post


Link to post
Share on other sites