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

Username:   Password: 
 RegisterRegister   
 Help regarding my paint program!
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
MysticVegeta




PostPosted: Mon Dec 20, 2004 9:54 pm   Post subject: Help regarding my paint program!

Can someone help me with this->
I have a paint program and when i select a paint brush and start to paint and then if i wanna switch to the other color, when i click over a button, it colors the button!!! Pleas help me
Sponsor
Sponsor
Sponsor
sponsor
Neo




PostPosted: Mon Dec 20, 2004 9:57 pm   Post subject: (No subject)

Post your code.
Carino




PostPosted: Tue Dec 21, 2004 12:09 pm   Post subject: (No subject)

Just use boundaries for the cursor.

if mx > blah and my > blah then
draw
end if

Just make it so it can't colour on the buttons yet still able to select them. Shouldn't be too hard.
MysticVegeta




PostPosted: Tue Dec 21, 2004 12:46 pm   Post subject: ok...

ok... then do what like u said "draw" so draw what? Any more details? Thx
Carino




PostPosted: Tue Dec 21, 2004 1:03 pm   Post subject: (No subject)

Draw w/e the person wants to draw. Have a procedure call draw. I havent seen your code so i cant really say much. The important part is the boundaries.
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  [ 5 Posts ]
Jump to:   


Style:  
Search: