I have made a drawing on an FMX TPaintBox and I want to remove/delete the drawing from the TPaintBox when I click on a button, but how?
I have tried things like this to set the canvas to empty, but it's not working:
PaintBox1.Canvas := nil;
What I am doing now is I am hiding the whole TPaintBox component and pretending it is not there. But it would be better if I can empty it. I have also tried deleting the component from the form and then creating a new one if needed with code, but this is tricky.