1064
Appendix A: System Routines — Text Editing
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
TE_open
(continued)
Outputs:
Returns TRUE if edit buffer could be allocated, or FALSE if insufficient
memory to allocate edit buffer. This routine always returns TRUE if
hText
is passed in with the handle to a text buffer.
teRec
is initialized with text edit state.
teRec
must be allocated statically to
maintain state between calls to the text edit routines.
Assumptions:
Window
w
must already be open. Handle
hText
must not be locked.
Side Effects:
May cause heap compression.
Availability:
All versions of the TI
-
89 / TI
-
92 Plus.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also:
TE_close, TE_openFixed, TE_reopen, TE_shrinkWrap
Example:
WIN_RECT rect;
static TERecord teRec;
.
.
.
/* Create an edit region at the top of window */
rect.x0 = 0;
rect.y0 = 0;
rect.x1 = WinWidth(&window);
rect.y1 = LF_HEIGHT + 1;
bOK = TE_open(&teRec, &window, &rect, H_NULL, 0, 0, TE_MORE_ELLIPSES);
.
.
.
TE_close (&teRec);