]]>
]]>
DtEditorCopyToClipboard
library call
DtEditorCopyToClipboard
copy the primary selection in a DtEditor widget to the clipboard
#include <Dt/Editor.h>
Boolean DtEditorCopyToClipboard
Widget widget
DESCRIPTION
The
DtEditorCopyToClipboard function copies to the clipboard the currently selected text in
the DtEditor widget specified by the
widget argument.
Text can be selected and deselect programmatically with
&cdeman.DtEditorSelectAll; and
&cdeman.DtEditorDeselect;.
The
widget argument specifies the DtEditor widget ID.
For a complete definition of the DtEditor widget
and its associated resources, see
&cdeman.DtEditor;. ]]>
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
&cdeman.Dt.Editor.h;, &cdeman.DtEditor;, &cdeman.DtEditorClearSelection;, &cdeman.DtEditorCutToClipboard;, &cdeman.DtEditorDeleteSelection;, &cdeman.DtEditorDeselect;, &cdeman.DtEditorPasteFromClipboard;, &cdeman.DtEditorSelectAll;, &cdeman.DtEditorUndoEdit;.