Page 1 of 1

Stop Brush Tool drawing over certain images

Posted: Mon Feb 10, 2014 7:45 pm
by KingCode
I have a program which uses the brush tool to draw, but it seems to be able to draw over all of my images.

Is there anyway to stop that, or restrict it to a certain drawing area?

Thanks :)

Re: Stop Brush Tool drawing over certain images

Posted: Mon Feb 10, 2014 8:01 pm
by dunbarx
Hi.

The "mouseMove" message is sent when using any tool, so you could change that tool if the mouseLoc is within the rect of any control or any defined area. The handler might lie in the card script, and test any number of conditions that you require to manage the painting process.

Craig Newman