DtEditorCopyToClipboard(library call) DtEditorCopyToClipboard(library call)
NAMEDtEditorCopyToClipboard — copy the primary selection in a DtEditor wid‐
get to the clipboard
SYNOPSIS
#include <Dt/Editor.h>
Boolean DtEditorCopyToClipboard(
Widget widget);
DESCRIPTION
The DtEditorCopyToClipboard function copies to the clipboard the cur‐
rently selected text in the DtEditor widget specified by the widget
argument. Text can be selected and deselect programmatically with DtE‐
ditorSelectAll(3) and DtEditorDeselect(3).
The widget argument specifies the DtEditor widget ID.
For a complete definition of the DtEditor widget and its associated
resources, see DtEditor(3).
RETURN VALUE
Upon successful completion, the DtEditorCopyToClipboard function
returns True; otherwise, if the primary selection is NULL, or if the
widget does not own the primary selection, or if the function is unable
to gain ownership of the clipboard selection, it returns False.
SEE ALSO
Dt/Editor.h - DtEditor(5), DtEditor(3), DtEditorClearSelection(3), DtE‐
ditorCutToClipboard(3), DtEditorDeleteSelection(3), DtEditorDese‐
lect(3), DtEditorPasteFromClipboard(3), DtEditorSelectAll(3), DtEdi‐
torUndoEdit(3).
DtEditorCopyToClipboard(library call)