
-----------------------------------
rbb
Fri Apr 25, 2003 12:21 pm

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.

-----------------------------------
Blade
Fri Apr 25, 2003 12:32 pm


-----------------------------------
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

-----------------------------------
jamez
Fri Apr 25, 2003 12:59 pm


-----------------------------------
var text : string := "THIS IS WHAT HE WANTS"
locate (maxrow div 2, (maxcol div 2) - (length (text) div 2))
put text

-----------------------------------
Blade
Fri Apr 25, 2003 2:15 pm


-----------------------------------
dude... look at the locked one, questions already answered....

-----------------------------------
Prince
Fri Apr 25, 2003 7:40 pm


-----------------------------------
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

-----------------------------------
Homer_simpson
Fri Apr 25, 2003 7:45 pm


-----------------------------------
if u know the size of window (standar(640,400)) u can caculate the number of spaces to put to center the text out

-----------------------------------
Asok
Fri Apr 25, 2003 11:53 pm


-----------------------------------
locked. Question has been answered multiple times, plz just copy and paste.
