If anyone has the time:
Create new stack, put one button and one image area.
To the button, attach:
on mouseDown
choose eraser tool
end mouse Down
This doesn't return the eraser in my case and I'm wondering whether it's a Mac thing, a Rev thing, or whether my computer is developing the ability to inflict pain.
Something simple
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Dear dalkin,
You are right. Only after using the eraser tool once, I can use the choose command to activate the eraser tool by script.
The RunRev team encountered this bug too. They decided to work around it by adding the following line in the tools palette:
...set the eraser to the eraser
So, your script should be:
Best regards,
Mark
You are right. Only after using the eraser tool once, I can use the choose command to activate the eraser tool by script.
The RunRev team encountered this bug too. They decided to work around it by adding the following line in the tools palette:
...set the eraser to the eraser
So, your script should be:
Code: Select all
on mouseDown
choose eraser tool
set the eraser to the eraser
end mouseDown
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode