Clipboard - Texas Instruments TI-89 Developer's Manual

Graphing calculator
Hide thumbs Also See for TI-89:
Table of Contents

Advertisement

Chapter 12: Basic Text Editing Facility
case CM_QUIT:
case CM_ACTIVATE:
default:
}
}
12.3.

Clipboard

The text editor moves text between the clipboard and edit buffer in response to
commands CM_CUT, CM_COPY, and CM_PASTE.
An application can manipulate the clipboard directly using routines
CB_replaceTEXT and CB_fetchTEXT. Any text placed in the clipboard by an
app with a call to CB_replaceTEXT can later be pasted into a text edit field.
Likewise, text placed in the clipboard by the text editor can be retrieved by the
app with a call to CB_fetchTEXT.
TI-89 / TI-92 Plus Developer Guide
teRect.x0 = 0;
teRect.y0 = 2;
teRect.x1 = WinWidth(&myWindow);
teRect.y1 = teRect.y0 + LF_HEIGHT - 1;
TE_open(&myTE, &myWindow, &teRect, H_NULL,
0, 0, TE_NOWRAP|TE_MORE_ARROWS);
break;
/* Get text from edit record */
hText = TE_shrinkWrap(&myTE);
/* Do something with text
:
*/
/* Close text edit record */
TE_close(&myTE);
WinClose(&myWindow);
break;
DrawWinBorder(&myWindow, &myWindow.Window);
EV_defaultHandler(event);
break;
/* Allow the text editor the first attempt at handling the
event. If it does not know how to handle the event, then
pass it on to the OS default event handler.
*/
if (! TE_handleEvent(&myTE, event))
EV_defaultHandler(event);
Not for Distribution
129
Beta Version January 26, 2001

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ti-92 plusTi-92 plus

Table of Contents