DADiSP Worksheet Functions > Function Categories > Annotation > DELETEHANDLE
Deletes one or more graphic objects.
DELETEHANDLE(handle)
handle |
- |
An integer or series of integers, the object handles. |
W1: gsin(100, .01);
h = rectdraw(W1, 0.2, -0.5, 0.6, 1.0);
deletehandle(h)
Draws a rectangle in W1. The rectangle is deleted and removed from the window.
W1: gsin(100, .01);
rectdraw(W1, 0.2, -0.5, 0.6, 1.0);
ellipsedraw(W1, 0.6, -1.0, 0.8, 1.0);
text(W1, 0.2, 1.0, "Example Text");
h = findshape(w1);
deletehandle(h);
Draws a rectangle, an ellipse and text in W1. The rectangle and ellipse are deleted but the text is preserved.
Deleting a graphic object removes it from the window.
See FINDHANDLE to obtain the handles for specific graphic objects.