
-----------------------------------
strugglin-angel
Mon Feb 14, 2005 8:03 pm

alignment in turing?
-----------------------------------
can i do align text in the center ?

-----------------------------------
Cervantes
Mon Feb 14, 2005 8:12 pm


-----------------------------------
What kind of text?  ie. are you using fonts, or just using put?
If using fonts: Font.Width will be especially handy.  Also you'll need maxx.
If using put: use locate, maxcol, and length.  Or you could use locatexy, maxx, and length.  
using put will probably not be so accurate.  fonts will be accurate.

If you want to align it vertically, you should also use maxy / maxrow

-----------------------------------
ssr
Mon Feb 14, 2005 8:37 pm


-----------------------------------
We already had a post on this topic 
Ah here it is 
http://www.compsci.ca/v2/viewtopic.php?t=7644&highlight=
check it out  :D  :D

-----------------------------------
strugglin-angel
Mon Feb 14, 2005 11:27 pm


-----------------------------------
=) thnx thxn

-----------------------------------
Drakain Zeil
Tue Feb 15, 2005 5:03 pm


-----------------------------------
What you'll really want to do is make this into a function or procedure, then just place it in whereever you want. I did it last year all the time.

What you want to do is take the maxcol/2, then the text length/2, add the two together and that's where you locate. I think.
