EasyManuals Logo
Home>Texas Instruments>Calculator>TI-89

Texas Instruments TI-89 Developer's Guide

Texas Instruments TI-89
1398 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #937 background imageLoading...
Page #937 background image
Appendix A: System Routines — Menus
895
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
MenuTopRedef
(continued)
Example:
This example uses an include file, a resource file, and an icon file as
specified after the example.
#include "appr.h"
void TestRedef( void ) {
HANDLE hMenu;
SINT select, fTop;
char buf[100];
if (hMenu = MenuBegin( &RedefMenu, 0, 0, MBF_REDEF )) {
MenuTopRedef( hMenu, 0, MID_ERASER );
MenuTopRedef( hMenu, 1, MID_ALPHA );
MenuTopSelect( hMenu, 0 );
do {
select = MenuKey( hMenu, KB_F1 );
switch (select) {
case MID_ERASER: case MID_PENCIL: case MID_RBBOX: fTop = 0; break;
case MID_GRAPH: case MID_ALPHA: fTop = 1; break;
default: MenuEnd(hMenu); return;
}
MenuTopRedef( hMenu, fTop, select );
MenuTopSelect( hMenu, fTop );
sprintf( buf, "You selected %d", MenuGetTopRedef( hMenu, fTop ) );
DlgNotice( "TEST", buf );
} while (1);
}
}
// app.h
#define MID_TOOLS 1
#define MID_CURSORS 2
#define MID_EXIT 3
#define MID_ERASER 4
#define MID_PENCIL 5
#define MID_RBBOX 6
#define MID_GRAPH 7
#define MID_ALPHA 8
// appr.r
#include "app.h"
#include "tiams.h"
(continued)

Table of Contents

Other manuals for Texas Instruments TI-89

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments TI-89 and is the answer not in the manual?

Texas Instruments TI-89 Specifications

General IconGeneral
Display size (HxV)100 x 160 mm
Memory type639K FLASH ROM, 188K bytes RAM
Compatible operating systemsOperating System 2.09
Battery typeAAA

Related product manuals