DADiSP Worksheet Functions > Function Categories > Annotation > DELETEHANDLE

 

DELETEHANDLE

Purpose:

Deletes one or more graphic objects.

Syntax:

DELETEHANDLE(handle)

handle

-

An integer or series of integers, the object handles.

Example:

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.

Example:

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.

Remarks:

Deleting a graphic object removes it from the window.

 

See FINDHANDLE to obtain the handles for specific graphic objects.

See Also:

CLEAR

DELALLFUNCTIONS

DELALLVARIABLES

DELFUN

FINDHANDLE

ISHANDLE