Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

OlTextEditUpdate(3)

OlTextEditGetCursorPosition(3)

OlTextEditSetCursorPosition(3)

OlTextEditReadSubString(3)

OlTextEditCopyBuffer(3)

OlTextEditCopySelection(3W)  —  MISC REFERENCE MANUAL PAGES

NAME

 OlTextEditCopySelection

SYNOPSIS

#include <buffutil.h>
#include <textbuff.h>
#include <Dynamic.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(3), OlTextEditGetCursorPosition(3),
OlTextEditSetCursorPosition(3), OlTextEditReadSubString(3),
OlTextEditCopyBuffer(3), TextEdit Widget

3/29/90  —  Last change:

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026