Computer Science Canada

HELP!!! Text Display within specific co-ordinates. HELP!!!

Author:  python_4 [ Sat Jan 17, 2004 1:38 pm ]
Post subject:  HELP!!! Text Display within specific co-ordinates. HELP!!!

Hi Guys, I am doing a trivia game. I need help with dislaying text with in specific area. For example: I draw a box , Draw.Box (0,0,40,40,black). I want the program to start from the top of box, if the text is bigger than the width of the box that is if the text cannot be fit in the first line. Then it should automatically go to the next line and display rest of the information. I would really appreciate anyone who is generous enough to help me. Thank you in advance.

Author:  Cervantes [ Sat Jan 17, 2004 2:24 pm ]
Post subject: 

read up on length ... htat oughta do it Wink

Author:  Tony [ Sat Jan 17, 2004 4:43 pm ]
Post subject: 

well you locate the text ether with

locate(row,column)
or
locatexy(x,y)

you'd have to do custom word wrapping using length()

Author:  python_4 [ Sat Jan 17, 2004 7:12 pm ]
Post subject:  Please Help me!!!!

I really do not get how to make a program, which will automatically go to the next available line if it cannot fit a text in specific co-ordinates. I want the program to know that it has to put (for example) 20 letters and then go to the next line and display the rest of the text. You guys have helped me with locating co-ordinates and displaying it, which I already know. I appreciate your help, but if you guys could help with more in this issue I would be really grateful to you. I really really need help.


: