EasyManuals Logo

Texas Instruments TI-89 Developer's Guide

Texas Instruments TI-89
1398 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #646 background imageLoading...
Page #646 background image
604
Appendix A: System Routines — Graphing
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
GraphActivate
(continued)
if (GraphActivate(TRUE)) {
rFlt = ForceFloat( k );
a0 = isShortFloat( rFlt / gr_active->rngp[GR_DELTAX] );
b0 = isShortFloat( rFlt / gr_active->rngp[GR_DELTAY] );
if (a0 < 0 || b0 < 0)
ER_THROW( ER_DOMAIN );
OrigAttr = WinAttr(gr_active->grwinp, GetAttr(m) );
WinEllipse( gr_active->grwinp, XCvtFtoP(ForceFloat(i),gr_active),
YCvtFtoP(ForceFloat(j),gr_active), a0, b0 );
WinAttr( gr_active->grwinp, OrigAttr );
}
}
/* Example app to activate grapher and reactivate itself.
AppFocus.c
*/
#define _92
#include "..\tiams.h"
static void AP_app(pFrame self, PEvent e);
FRAME(appObj, OO_SYSTEM_FRAME, 0, OO_APP_FLAGS, 3)
ATTR(OO_APP_FLAGS, APP_INTERACTIVE)
ATTR(OO_APP_NAME, "appfocus")
ATTR(OO_APP_PROCESS_EVENT, &AP_app)
ENDFRAME
pFrame pAppObj = (pFrame)&appObj;
WINDOW appW;
BOOL graphActive;
AppID ourID;
short x, y;
void activateGraph( void )
{ Access_AMS_Global_Variables;
graphActive = TRUE; /* signal we are activating the grapher */
if (GraphActivate( FALSE )) {
WinEllipse(gr_active->grwinp, x++, y++, 25, 25 );
EV_startApp( ourID, AP_START_CURRENT );
} else
graphActive = FALSE; /* failed to activate grapher */
}
static void AP_app(pFrame self, PEvent e)
{ Access_AMS_Global_Variables;
WIN_RECT appWR;
WINDOW *winPtr = &appW;
(continued)

Table of Contents

Other manuals for Texas Instruments TI-89

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments TI-89 and is the answer not in the manual?

Texas Instruments TI-89 Specifications

General IconGeneral
Display size (HxV)100 x 160 mm
Memory type639K FLASH ROM, 188K bytes RAM
Compatible operating systemsOperating System 2.09
Battery typeAAA

Related product manuals