Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

OlTextEditGetCursorPosition(3)

OlTextEditInsert(3W)  —  MISC REFERENCE MANUAL PAGES

NAME

 OlTextEditInsert

SYNOPSIS

#include <buffutil.h>
#include <textbuff.h>
#include <Dynamic.h>
#include <TextEdit.h>
 ...
extern Boolean OlTextEditInsert(ctx, buffer, length)
TextEditWidget ctx;
String         buffer;
int            length;

DESCRIPTION

The OlTextEditInsert function is used to insert a NULL-terminated buffer containing length bytes in the TextBuffer associated with the TextEdit widget ctx.  The inserted text replaces the current (if any) selection.  Note: The value of length is not used internally, but is passed on as the length field in the XtNmodifyVerification callback. 

RETURN VALUE

FALSE is returned if the widget supplied is not a TextEdit Widget or if the insert operation fails; otherwise TRUE is returned.

SEE ALSO

OlTextEditGetCursorPosition(3), TextEdit Widget

3/29/90  —  Last change:

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