Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ OlTextEditSetCursorPosition(3W) — OpenWindows V2

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

OlTextEditGetCursorPosition(3)

OlTextEditSetCursorPosition(3W)  —  MISC. REFERENCE MANUAL PAGES

NAME

 OlTextEditSetCursorPosition

SYNOPSIS

#include <buffutil.h>
#include <textbuff.h>
#include <Dynamic.h>
#include <TextEdit.h>
 ...
extern Boolean OlTextEditSetCursorPosition(ctx, start, end, cursorPosition)
TextEditWidget ctx;
TextPosition start;
TextPosition end;
TextPosition cursorPosition;

DESCRIPTION

The OlTextEditSetCursorPosition function is used to change the current selection start and end and cursorPosition.  The function does NOT check (for efficiency) the validity of the positions.  If invalid values are given results are unpredictable.  The function attempts to ensure that the cursorPosition is visible by scrolling the display. 

RETURN VALUE

FALSE is returned if the widget supplied is not a TextEdit Widget; otherwise TRUE is returned.

SEE ALSO

OlTextEditGetCursorPosition(3), TextEdit Widget

3/29/90  —  Last change:

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