Computer Science Canada

alignment in turing?

Author:  strugglin-angel [ Mon Feb 14, 2005 8:03 pm ]
Post subject:  alignment in turing?

can i do align text in the center ?

Author:  Cervantes [ Mon Feb 14, 2005 8:12 pm ]
Post subject: 

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

Author:  ssr [ Mon Feb 14, 2005 8:37 pm ]
Post subject: 

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 Very Happy Very Happy

Author:  strugglin-angel [ Mon Feb 14, 2005 11:27 pm ]
Post subject: 

=) thnx thxn

Author:  Drakain Zeil [ Tue Feb 15, 2005 5:03 pm ]
Post subject: 

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.


: