OlTextEditCopySelection(3W) UNIX System V OlTextEditCopySelection(3W)
NAME
OlTextEditCopySelection
SYNOPSIS
#include <buffutil.h>
#include <textbuff.h>
#include <TextEdit.h>
...
extern Boolean OlTextEditCopySelection(ctx, delete)
TextEditWidget ctx;
int delete;
DESCRIPTION
The OlTextEditCopySelection function is used to Copy or Cut the current
selection in the TextEdit ctx. If no selection exists or if the TextEdit
cannot acquire the CLIPBOARD, FALSE is returned. Otherwise the selection
is copied to the CLIPBOARD then, if the delete flag is non-zero, the text
is then deleted from the TextBuffer associated with the TextEdit widget
(i.e., a CUT operation is performed). Finally, TRUE is returned.
RETURN VALUE
FALSE is returned if the widget supplied is not a TextEdit Widget or if
the operation fails; otherwise TRUE is returned.
SEE ALSO
OlTextEditUpdate(3W), OlTextEditGetCursorPosition(3W),
OlTextEditSetCursorPosition(3W), OlTextEditReadSubString(3W),
OlTextEditCopyBuffer(3W), TextEdit Widget
10/89 Page 1