Author |
Message |
MysticVegeta
|
Posted: 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
|
|
|
Neo
|
Posted: Mon Dec 20, 2004 9:57 pm Post subject: (No subject) |
|
|
Post your code. |
|
|
|
|
|
Carino
|
Posted: 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
|
Posted: 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
|
Posted: 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. |
|
|
|
|
|
|