Texas Instruments TI89 Developer Guide - Page 99
Frametargetappframe, Oo_system_frame, Null, Oo_app_name
![]() |
UPC - 033317198566
View all Texas Instruments TI89 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 99 highlights
Chapter 7: Flash Application Layout 57 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, ¬iceInstall) 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 Beta Version January 26, 2001
![](/manual_guide/products/texas-instruments-ti89-developer-guide-95b636f/99.png)