
-----------------------------------
MysticVegeta
Mon Dec 20, 2004 9:54 pm

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

-----------------------------------
Neo
Mon Dec 20, 2004 9:57 pm


-----------------------------------
Post your code.

-----------------------------------
Carino
Tue Dec 21, 2004 12:09 pm


-----------------------------------
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
Tue Dec 21, 2004 12:46 pm

ok...
-----------------------------------
ok... then do what like u said "draw" so draw what? Any more details? Thx

-----------------------------------
Carino
Tue Dec 21, 2004 1:03 pm


-----------------------------------
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.
