Computer Science Canada

The problem with my centering is...

Author:  rbb [ Fri Apr 25, 2003 12:21 pm ]
Post subject:  The problem with my centering is...

Alright I tried that code but when I used it it made the text go to the far right of the screen not the center. DO you know why this happens.

Author:  Blade [ Fri Apr 25, 2003 12:32 pm ]
Post subject: 

no, because theres something you are not doing right... like asok said man... every possible answer

copy and paste some of the code, heh... all mine work

Author:  jamez [ Fri Apr 25, 2003 12:59 pm ]
Post subject: 

code:
var text : string := "THIS IS WHAT HE WANTS"
locate (maxrow div 2, (maxcol div 2) - (length (text) div 2))
put text

Author:  Blade [ Fri Apr 25, 2003 2:15 pm ]
Post subject: 

dude... look at the locked one, questions already answered....

Author:  Prince [ Fri Apr 25, 2003 7:40 pm ]
Post subject: 

speakin of centring, is there any type of code u can use if u wanna centre a title (in the blue bar above the run window) or do u jus hafta put in a bunch of spaces

Author:  Homer_simpson [ Fri Apr 25, 2003 7:45 pm ]
Post subject: 

if u know the size of window (standar(640,400)) u can caculate the number of spaces to put to center the text out

Author:  Asok [ Fri Apr 25, 2003 11:53 pm ]
Post subject: 

locked. Question has been answered multiple times, plz just copy and paste.


: