Appendix A: System Routines — Text Editing
1057
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
TE_focus
Declaration:
BOOL
TE_focus
(TERecord *
teRec
)
Category(ies):
Text Editing
Description:
Makes
teRec
the current input field. Highlights selected text or turns on
cursor blink in the input field.
Inputs:
teRec
— Contains the text edit state.
Outputs:
Returns TRUE if text edit was already focused on this field before calling
this routine. Otherwise returns FALSE.
Assumptions:
This routine is used in conjunction with
TE_unfocus
to move the focus of
text editing from one edit field to another. Call
TE_unfocus
to unhighlight
text and stop cursor blink in the current edit field. Then call
TE_focus
to
highlight text and start cursor blink in another edit field.
Side Effects:
Cursor blink is turned on.
Availability:
All versions of the TI
-
89 / TI
-
92 Plus.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: TE_unfocus
Example:
case KB_ENTER: /* Move edit focus to next field */
TE_unfocus(&teField1);
TE_focus(&teField2);
break;