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


DtEditorPasteFromClipboard(3)

CDE

NAME

DtEditorPasteFromClipboard - insert the clipboard selection into a DtEditor widget

SYNOPSIS

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

DESCRIPTION

The DtEditorPasteFromClipboard function inserts the clipboard selection before the insertion cursor of the DtEditor widget. If the insertion cursor is inside the current selection, the clipboard selection replaces the selected text. Text can be cut or copied to the clipboard with DtEditorCutToClipboard3 and DtEditorCopyToClipboard3. 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 DtEditorPasteFromClipboard function returns True; otherwise, if the widget does not own the primary selection, the function returns False.

SEE ALSO

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