How can I remove the function of the oblique line?
I suppose you mean having a 'cursor' function.
If you mean deleting a drawn object, this will first need:
- Defining drawing objects and memorizing them with their properties in a list.
And then to delete an object:
- Remove the object from the list and redraw the whole drawing.
Attached you find a new version.
- Added a cursor function showing a cursor and its coordinates.
- Added a delete function which deletes the whole drawing.