Texas Instruments TI-89 Developer's Manual page 958

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

Advertisement

916
EV_captureEvents
/* Display my window */
if (! WinOpen(&myWindow, &r, WF_SAVE_SCR|WF_ROUNDEDBORDER|WF_TITLE|WF_TTY,
"MY WINDOW"))
{
EV_restorePainting(oldPaintState);
return;
}
WinActivate(&myWindow);
WinBeginPaint(&myWindow);
WinAttr(&myWindow, A_REPLACE);
myWindow.Flags &= ~WF_DIRTY;
myWindow.TaskId = AP_NONE;
paint();
/* Install event handler */
oldEventHandler = EV_captureEvents(myEventHandler);
}
static void myEventHandler(PEvent e)
{
if (e->command == CM_KEY_PRESS)
{
switch (e->info.keyInfo.keyCode)
{
case KB_ENTER:
case KB_ESC:
cancel();
break;
case KB_SWITCH:
case KB_VARLINK:
case KB_CHAR:
case KB_MATH:
case KB_MODE:
case KB_MENU:
case KB_MEM:
case KB_QUIT:
case KB_HOME:
case KB_YEQ:
case KB_RANGE:
case KB_GRAPH:
case KB_TBLSET:
case KB_TABLE:
case KB_OFF:
cancel();
EV_defaultHandler(e);
break;
TI-89 / TI-92 Plus Developer Guide
Appendix A: System Routines — Operating System
(continued)
/* I will repaint this window myself */
/* no task owns this window */
/* cancel dialog */
/* cancel dialog */
/* allow default handling */
(continued)
Not for Distribution
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