Author |
Message |
n00b.skillz
|
Posted: Fri Dec 22, 2006 9:04 pm Post subject: word wrap????? |
|
|
kk i'm just wondering if there is such a thing as word wrap in the sense that if i use font.draw and the sentance doesn't fit in one line it will automatically jump to the next because i'm writin font.draw but it's in a procedure so if it can't then i have to redo everything..... |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Hackmaster
|
Posted: Fri Dec 22, 2006 10:03 pm Post subject: (No subject) |
|
|
I'm pretty sure that it will... but it might cut your words in half.
Also, you could just write some sort of thing that does that cleanly. something that uses strlen to determine if the word is going to hit maxrow, and if it is, then move to the next line. simple stuff. |
|
|
|
|
![](images/spacer.gif) |
n00b.skillz
|
Posted: Fri Dec 22, 2006 10:49 pm Post subject: (No subject) |
|
|
kk well the fon.tdraw does not do that automatically ..... and can you please explain how to use maxrow/ wut are it's parameters/where i can find more help?? thx alot |
|
|
|
|
![](images/spacer.gif) |
Clayton
![](http://compsci.ca/v3/uploads/user_avatars/1718239683472e5c8d7e617.jpg)
|
Posted: Sat Dec 23, 2006 11:32 am Post subject: (No subject) |
|
|
maxrow (as well as maxcol) is a constant. It is set to whatever the maximum number of rows are in your run window (25 I believe by default in text mode). Seeing as you are using Font.Draw however, you will be working in graphics mode, and therefore the constants maxrow and maxcol will be of no use to you. Instead, you could probably try to scale the words (if you are using View.Set ("graphics:max;max") ) by checking how large maxx and maxy are at runtime. Other than that, the best you could do is keep the run window size static, and eyball it. |
|
|
|
|
![](images/spacer.gif) |
n00b.skillz
|
Posted: Wed Dec 27, 2006 10:17 pm Post subject: (No subject) |
|
|
thx alot...... yet another thing we didn't learn in class... ![Razz Razz](http://compsci.ca/v3/images/smiles/icon_razz.gif) |
|
|
|
|
![](images/spacer.gif) |
|