Help with using Gui!!
Author |
Message |
chibitenshi_03
|
Posted: 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. |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Tony
|
Posted: 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
... |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
chibitenshi_03
|
Posted: Mon Jan 05, 2004 7:30 pm Post subject: (No subject) |
|
|
thanks |
|
|
|
|
|
|
|