Chapter 8: Integrating a Flash Application
69
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
8.3.3. Flash App Extensions
Flash applications can install functions and programs called App Extensions that
are available to the rest of the system. The F3: Flash Apps catalog toolbar
selection item will be available if any of the Flash applications loaded in the
calculator installed App Extensions. Pressing the
…
function key will display the
list of App Extensions in alphabetical order by function name with the name of
the application that installed the App Extension to the right of the function or
program name.
An example of defining App Extensions and App Help Strings within an
application follows:
/* Applet strings */
#define STR_appfunc 0
#define STR_appprog 1
#define STR_HELP (100)
void main(pFrame, PEvent);
APP_EXTENSION const appExtensions[] =
{
/* func name #, help string # func index */
{OO_APPSTRING+STR_appfunc, OO_APPSTRING+STR_HELP+STR_appfunc, STR_appfunc},
{OO_APPSTRING+STR_appprog, OO_APPSTRING+STR_HELP+STR_appprog, STR_appprog},
};
APP_EXT_ENTRY const appExtEntries[] =
{
{appfunc, APP_EXT_FUNCTION},
{appprog, APP_EXT_PROGRAM},
};
FRAME(appObj, OO_SYSTEM_FRAME, 0, OO_APP_FLAGS, 11)
ATTR(OO_APP_FLAGS, APP_INTERACTIVE)
ATTR(OO_APP_NAME, "App")
ATTR(OO_APP_TOK_NAME, "TIAPP")
ATTR(OO_APP_PROCESS_EVENT, &main)
ATTR(OO_APP_EXT_COUNT, 2 )
ATTR(OO_APP_EXTENSIONS, appExtensions)
ATTR(OO_APP_EXT_ENTRIES, appExtEntries)
/* The STR_appfunc string "appfunc" appears in the F2 Flash App
catalog listing with the OO_APP_TOK_NAME "TIAPP" -
appfunc( . . . TIAPP */
ATTR(OO_APPSTRING+STR_appfunc, "appfunc")
ATTR(OO_APPSTRING+STR_appprog, "appprog")
/* The STR_HELP+STR_appfunc string "app function help" appears in the
Status Line when the cursor is on this function and also in the F1
Help Dialog box */
ATTR(OO_APPSTRING+STR_HELP+STR_appfunc, "app function help")
ATTR(OO_APPSTRING+STR_HELP+STR_appprog, "app program help")
ENDFRAME