Texas Instruments TI-89 Developer's Manual page 99

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

Advertisement

Chapter 7: Flash Application Layout
/**********************************************************************
Set MY_APP_NAME to the name this localizer app should have in the
VAR-LINK [F7:APPS] screen.
**********************************************************************/
#define MY_APP_NAME "French Demo Localizer"
void main(pFrame self, PEvent e);
void observer(pFrame self, PEvent e);
BOOL localize(pFrame, char *lang);
void unlocalize(pFrame);
void noticeInstall(pFrame, ACB const *);
BOOL candelete(pFrame self);
static
FRAME(LocalizerFrame, OO_SYSTEM_FRAME, 0, OO_APP_FLAGS, 7)
/* This app does not appear on the [APPS] menu */
ATTR(OO_APP_FLAGS, APP_NONE)
ATTR(OO_APP_NAME, MY_APP_NAME)
/* It needs to respond to some events */
ATTR(OO_APP_PROCESS_EVENT, &main)
/* Export methods used in localization */
ATTR(OO_APP_LOCALIZE, &localize)
ATTR(OO_APP_UNLOCALIZE, &unlocalize)
ATTR(OO_APP_CAN_DELETE, &candelete)
ATTR(OO_APP_NOTICE_INSTALL, &noticeInstall)
ENDFRAME
pFrame appframe = (pFrame)&LocalizerFrame;
/* This little FRAME is hooked ahead of the Target app's frame. It
accomplishes a couple of things:
1) It renames the Target app on the [APPS] menu, and
2) It redirects its event handler to this app so we can observe its
pack/unpack and uninstall messages. All events are forwarded to
their rightful owner.
*/
static
FRAME(TargetAppFrame, OO_SYSTEM_FRAME, NULL, OO_APP_NAME, 2)
/* Override the Target app's name in the [APPS] menu */
ATTR(OO_APP_NAME, APPSname)
/* Redirect Target app's events to me */
ATTR(OO_APP_PROCESS_EVENT, &observer)
ENDFRAME
/* Place the translated strings here. Keep the following OO_Hdr structure
and target strings array together. The OO_Hdr structure is an object
frame header for the following array of string attributes.
*/
TI-89 / TI-92 Plus Developer Guide
Not for Distribution
57
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