EasyManuals Logo

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 #397 background imageLoading...
Page #397 background image
Appendix A: System Routines — Dialog
355
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
DrawStaticButton
(continued)
Example:
/* The MEM screen is not a dialog box, even though it looks like one. It uses
MenuBegin to draw its menu and GKeyIn to get keys (it is not part of the
event loop). It uses DrawStaticButton to draw the ENTER button. It also uses
DlgMessage to prompt the user.
*/
if (WinOpen( &w, MakeWinRect(13,8,227,120), WF_ROUNDEDBORDER |
WF_SAVE_SCR | WF_TITLE | WF_SYS_ALLOC, XR_stringPtr(XR_MEMORY))) {
.
.
.
DrawStaticButton( &w, PDB_OK, 5 );
if (h = MenuBegin(&ResetMenu, 15,12, MBF_SYS_ALLOC)) {
DrawWinBorder( &w, &w.Window ); /* fixup title line */
do {
Key = GKeyIn( 0l, GKF_MODAL );
if (Key == KB_F1) {
if ((Key = MenuKey( h, KB_F1 )) == KB_ESC)
Key = 0;
if (Key >= MR_RAM_ALL && Key <= MR_ALL_MEMORY) {
i = (short) DlgMessage( XR_stringPtr(XR_RESET),
XR_stringPtr(ResetTitles[Key-1]), PDB_YES, PDB_NO );
if ((WORD) i != KB_ENTER)
continue;
MenuEnd( h );
WinClose( &w );
.
.
.

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