1056
Appendix A: System Routines — Text Editing
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
TE_empty
Declaration:
void
TE_empty
(TERecord *
teRec
)
Category(ies):
Text Editing
Description:
Deletes all text from edit buffer.
Inputs:
teRec
— Contains the text edit state.
Outputs:
None
Assumptions:
This routine turns off cursor blink before emptying the edit buffer. This
routine does not repaint the edit region. It makes its parent window dirty so
the edit region will be updated when the next paint message arrives.
Side Effects:
May cause heap compression. Sets WF_DIRTY flag in parent window.
Availability:
All versions of the TI
-
89 / TI
-
92 Plus.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also:
None
Example:
case CM_CLEAR_ALL: /* User chose Clear Editor from Tools menu */
/* Confirm Clear Editor */
if (Dialog(&DataClearDlg, -1, -1, NULL, NULL) == KB_ENTER)
{
TE_empty(&teText); /* OK - empty edit buffer */
TE_focus(&teText); /* Turn cursor blink back on */
}
break;