Centring text in max

BlitzMax Forums/BlitzMax Beginners Area/Centring text in max

Pete Carter(Posted 2008) [#1]
ok this one should be easy for you ;OP

drawing text to a small box that prints an objects discription when you how the mouse over it. the only think is the discriptions are different leights so i cant use the setimagehandle command, unless theres a way of reading how long a string is and the i could just get that and devide by 2.

Pete


tonyg(Posted 2008) [#2]
try textwidth or the len() function


Pete Carter(Posted 2008) [#3]
thanks textwidth worked great, these commands are easy to miss in the manual.


tonyg(Posted 2008) [#4]
these commands are easy to miss in the manual.

Try this as I found it helps.


RiK(Posted 2008) [#5]
thanks textwidth worked great, these commands are easy to miss in the manual.


I see what you did there... :)