Hey,
I'm drawing some stuff on a panel with a Canvas.
But how can I perform an 'undo' action, to return to the prev state.
So basically I want to know how to delete/remove a part and how you can clean up the whole panel.
XverhelstX
I'm drawing some stuff on a panel with a Canvas.
B4X:
Sub pnlDraw_Touch (Action As Int, X As Float, Y As Float)
lblX.Text = "X= " & X
lblY.Text = "Y= " & Y
Canvas1.DrawCircle(x, y, 10dip, Colors.Red, True, 10dip)
pnlDraw.Invalidate()
End Sub
But how can I perform an 'undo' action, to return to the prev state.
So basically I want to know how to delete/remove a part and how you can clean up the whole panel.
XverhelstX