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

Username:   Password: 
 RegisterRegister   
 Help with using Gui!!
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
chibitenshi_03




PostPosted: Mon Jan 05, 2004 6:03 pm   Post subject: Help with using Gui!!

I'm trying to make a paint program. I created a canvas using GUI but I don't know how to set a limit to it so that when I draw something it can't go out of the border. Crying or Very sad
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Mon Jan 05, 2004 6:50 pm   Post subject: (No subject)

before you process mouse click to draw the pixels, make sure that the mouse is inside the box.

such as

if mouseX >0 and mouseX <100 and mouseY>0 and mouseY <100 then
...
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
chibitenshi_03




PostPosted: Mon Jan 05, 2004 7:30 pm   Post subject: (No subject)

thanks
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  [ 3 Posts ]
Jump to:   


Style:  
Search: