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


DtEditorClearSelection(3)

CDE

NAME

DtEditorClearSelection - clear the primary selection in a DtEditor widget

SYNOPSIS

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

DESCRIPTION

The DtEditorClearSelection function replaces the primary selection in a DtEditor widget, specified by widget, with blanks (ASCII character 0x20) and newlines. Text can be selected and deselected 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 DtEditorClearSelection 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, DtEditor3, DtEditorCopyToClipboard3, DtEditorCutToClipboard3, DtEditorDeselect3, DtEditorDeleteSelection3, DtEditorPasteFromClipboard3, DtEditorSelectAll3, DtEditorUndoEdit3.