Texas Instruments TI89 Developer Guide - Page 100
OO_FIRST_STRING + OO_FIRST_APP_STRING, static const OO_Hdr TargetStrings
![]() |
UPC - 033317198566
View all Texas Instruments TI89 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 100 highlights
58 Chapter 7: Flash Application Layout static const OO_Hdr TargetStrings = { OO_SYSTEM_FRAME, (pFrame)&TargetAppFrame, OO_RO | OO_SEQ, OO_FIRST_STRING + OO_FIRST_APP_STRING, 174 number of strings }; static char * const targetstrings[] = { "first string local translation of strings "second string", /* etc. */ }; /* Keep track of when this localizer is hooked into the Target app */ pFrame hook = 0; This app's event handler needs to unhook itself from the target app when it is deleted or moved. It can reconnect to the Target app when it has been reinstalled or has completed its move void main(pFrame self, PEvent e) { switch (e->command) { case CM_UNINSTALL: case CM_PACK: unlocalize(self); break; case CM_INSTALL: case CM_UNPACK: localize(self, XR_stringPtr(XR_NativeLanguage)); break; } } This routine observes all events sent to Target app. It localizes the Target after the app UNPACKs and unlocalizes the Target just before it PACKs or UNINSTALLs void observer(pFrame self, PEvent e) { Access_AMS_Global_Variables; pFrame super = OO_SuperFrame; switch (e->command) { TI-89 / TI-92 Plus Developer Guide Not for Distribution Beta Version January 26, 2001
![](/manual_guide/products/texas-instruments-ti89-developer-guide-95b636f/100.png)