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

Username:   Password: 
 RegisterRegister   
 HELP!!! Text Display within specific co-ordinates. HELP!!!
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
python_4




PostPosted: 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.
Sponsor
Sponsor
Sponsor
sponsor
Cervantes




PostPosted: Sat Jan 17, 2004 2:24 pm   Post subject: (No subject)

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




PostPosted: Sat Jan 17, 2004 4:43 pm   Post subject: (No 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()
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
python_4




PostPosted: 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.
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  [ 4 Posts ]
Jump to:   


Style:  
Search: