Stop Brush Tool drawing over certain images

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
KingCode
Posts: 9
Joined: Wed Feb 05, 2014 5:34 pm

Stop Brush Tool drawing over certain images

Post by KingCode » Mon Feb 10, 2014 7:45 pm

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 :)

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10333
Joined: Wed May 06, 2009 2:28 pm

Re: Stop Brush Tool drawing over certain images

Post by dunbarx » Mon Feb 10, 2014 8:01 pm

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

Post Reply