Texas Instruments TI-89 Developer's Manual page 163

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

Advertisement

Chapter 11: Creating the User Interface
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
case ACM_POPUP:
74
75
76
77
78
79
80
81
82
83
84
85
86
case ACM_HFONT:
87
88
89
default:
90
91
92
}
93
}
94
95
DWORD NoCallBack( WORD DlgId, DWORD Value ) { return TRUE; }
96
97
// APP1.H
98
#define ACM_WINSTR
99
#define ACM_DIALOG
100
#define ACM_POPUP
101
#define ACM_NOTHING
102
#define ACM_HFONT
103
104
// APPR1.R
105
#include "app1.h"
106
#include "tiams.h"
TI-89 / TI-92 Plus Developer Guide
}
break;
case CM_KEY_PRESS:
key = e->info.keyInfo.keyCode;
if ((key <= 0xFF && isprint(key)) || KB_ENTER == key) {
WinChar( &appW, key );
}
else
EV_defaultHandler(e);
break;
case CM_WPAINT:
DrawWinBorder( &appW, &appW.Window );
WinBackupToScr( &appW );
break;
case ACM_WINSTR:
WinStr( &appW, "APP1 CMD1\n");
break;
case ACM_DIALOG:
opts[0] = opts[1] = 1; /* default to 1st pop-up item */
if (KB_ENTER == Dialog( &tDialog, -1, -1, buf, opts )) {
sprintf( outStr, "Edit1: %s\nEdit 2: %s\nPopup1: %d\nPopup2: %d",
buf, buf+11, opts[0], opts[1] );
DlgNotice( "tDialog", outStr );
}
break;
if (hPopup = PopupNew( "DYNAMIC POPUP", 0 )) {
DynMenuAdd( hPopup, 0, buf, 1, DMF_TEXT | DMF_TOP );
DynMenuAdd( hPopup, 0, buf+11, 2, DMF_TEXT | DMF_TOP );
DynMenuAdd( hPopup, 0, "LAST ITEM", 3, DMF_TEXT | DMF_TOP );
if (!(MenuFlags(hPopup) & MF_ERROR)) {
vSelect = PopupDo( hPopup, -1, -1, 0 );
sprintf(outStr, "Selected %s", PopupText(hPopup, vSelect));
DlgNotice( "dPopup", outStr );
}
HeapFree( hPopup );
}
break;
WinFont( &appW, F_8x10 );
break;
EV_defaultHandler(e);
break;
Not for Distribution
0x500
0x501
0x502
0x503
0x504
Beta Version January 26, 2001
121

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ti-92 plusTi-92 plus

Table of Contents