Attribute Oo_Appstring (0X1000 And Up); Example - Texas Instruments TI-89 Developer's Manual

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

Advertisement

Chapter 7: Flash Application Layout
This method is optional. The system implementation of this method displays the
application's internal name, revision number, and date when its certificate was
signed.
7.3.1.3.19.

Attribute OO_APPSTRING (0x1000 and up)

char const *
Applications store pointers to their strings beginning with selector number 0x1000
defined by macro
expect application string numbers to be defined in the range 0x1000 – 0x17FF.
7.3.1.4.

Example

C source file pipes.c:
#include "tiams.h"
#include "pipesr.h"
#include "pipes.h"
/* Prototypes of functions in this source file */
void main(pFrame, PEvent);
static short sabs(short);
static short random(short, short);
FRAME(pipesFrame, OO_SYSTEM_FRAME, 0, OO_APP_FLAGS, 6)
ATTR(OO_APP_FLAGS, APP_INTERACTIVE)
ATTR(OO_APP_NAME, "Pipes")
ATTR(OO_APP_PROCESS_EVENT, &main)
ATTR(OO_APP_DEFAULT_MENU, &pipesMenu)
/* Strings used in menu */
ATTR(OO_FIRST_STRING+P_Tools, "Tools")
ATTR(OO_FIRST_STRING+P_Clear, "Clear")
ENDFRAME
pFrame PipesFrame = (pFrame)&pipesFrame;/* Pointer to object frame */
#define BOX_DIMENSION (15)
#define MAX_BOX (25)
WINDOW w;
SCR_COORDS width, height;
WIN_RECT box;
/* Event handler - the OS calls this routine when an event has occurred
*/
void main(pFrame self, PEvent event)
{
static short deltaX = 1, deltaY = 1;
static short boxcount = -1;
TI-89 / TI-92 Plus Developer Guide
. The menu system and language localizers
OO_APPSTRING
/* Name in [APPS] menu */
Not for Distribution
/* This is an interactive app */
/* Address of event handler */
/* Menu defined in pipesr.r */
Beta Version January 26, 2001
45

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ti-92 plusTi-92 plus

Table of Contents