0
Answered

Could you help me? I want the user to be able to erase or edit the drawing they have done in the canvas area.

cathy lane 10 year бұрын updated by Inna Komarovsky 10 year бұрын 3
I have tried to work it out- no luck. I created a canvas area and a colour select button- thanks to your great little app you sent me. I want the users to be able to erase/ edit their drawing by tapping an erase button. Thanks for your help!

Cathy Lane

Answer

Answer
Answered
To allow the user to erase what they drew, you can use the SetEraseMode behavior (in the "Drawing" behaviors category). Within this behavior, you can select whether you are turning the eraser on or off. So for example the eraser button could have a Tap-SetEraseMode (on) action set, and it can switch with another button that shows that the eraser is on and will turn the eraser off when it is tapped.

Let us know if you'd like to see a sample app of this effect.
Answer
Answered
To allow the user to erase what they drew, you can use the SetEraseMode behavior (in the "Drawing" behaviors category). Within this behavior, you can select whether you are turning the eraser on or off. So for example the eraser button could have a Tap-SetEraseMode (on) action set, and it can switch with another button that shows that the eraser is on and will turn the eraser off when it is tapped.

Let us know if you'd like to see a sample app of this effect.
Thanks. I have tried to work this out- sorry having trouble. Program keeps crashing as I am not sure how to link the actions together.I would really appreciate a sample app to explain this.
Thanks,
Cathy Lane
Hi Cathy here is a tutorial of a drawing page with erase option to:
http://www.youtube.com/watch?v=9Zu0I-NST_Q

And here you'll find the sample app for this:
121 - Draw Page.zip
Thank you so much for the drawing demo and sample app they are fantastic!