Index Click this button to go to the index for this section.


DtEditorDeleteSelection(3)

CDE

NAME

DtEditorDeleteSelection - delete the primary selection in the DtEditor widget

SYNOPSIS

#include <Dt/Editor.h> Boolean DtEditorDeleteSelection(Widget widget);

DESCRIPTION

The DtEditorDeleteSelection function removes the currently highlighted data in a DtEditor widget. Any data following the deleted data is moved up. Text can be selected and deselect programmatically with DtEditorSelectAll3 and DtEditorDeselect3. The widget argument Specifies the DtEditor widget ID. For a complete definition of the DtEditor widget and its associated resources, see DtEditor3.

RETURN VALUE

Upon successful completion, the DtEditorDeleteSelection function returns True; otherwise, if the primary selection is NULL, or if the widget does not own the primary selection, it returns False.

SEE ALSO

Dt/Editor.h5, DtEditorClearSelection3, DtEditorCopyToClipboard3, DtEditorCutToClipboard3, DtEditorDeselect3, DtEditorPasteFromClipboard3, DtEditorSelectAll3, DtEditorUndoEdit3.