Computer Science Canada

Help with using Gui!!

Author:  chibitenshi_03 [ 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

Author:  Tony [ Mon Jan 05, 2004 6:50 pm ]
Post 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
...

Author:  chibitenshi_03 [ Mon Jan 05, 2004 7:30 pm ]
Post subject: 

thanks


: