]]>
]]>
DtEditorPasteFromClipboard
library call
DtEditorPasteFromClipboard
insert the clipboard selection into a DtEditor widget
#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
&cdeman.DtEditorCutToClipboard; and
&cdeman.DtEditorCopyToClipboard;. Text can be selected and deselected 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
DtEditorPasteFromClipboard function returns
True;
otherwise, if the widget does not own the primary selection,
the function returns
False.
SEE ALSO
&cdeman.Dt.Editor.h;, &cdeman.DtEditor;, &cdeman.DtEditorClearSelection;, &cdeman.DtEditorCutToClipboard;, &cdeman.DtEditorCopyToClipboard;, &cdeman.DtEditorDeleteSelection;, &cdeman.DtEditorDeselect;, &cdeman.DtEditorSelectAll;, &cdeman.DtEditorUndoEdit;.