Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 alignment in turing?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
strugglin-angel




PostPosted: Mon Feb 14, 2005 8:03 pm   Post subject: alignment in turing?

can i do align text in the center ?
Sponsor
Sponsor
Sponsor
sponsor
Cervantes




PostPosted: Mon Feb 14, 2005 8:12 pm   Post subject: (No 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
ssr




PostPosted: Mon Feb 14, 2005 8:37 pm   Post subject: (No 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
strugglin-angel




PostPosted: Mon Feb 14, 2005 11:27 pm   Post subject: (No subject)

=) thnx thxn
Drakain Zeil




PostPosted: Tue Feb 15, 2005 5:03 pm   Post subject: (No 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.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: