Texas Instruments TI89 Developer Guide - Page 159
DIALOG Boxes, DialogName, DialogWidth, DialogHeight, CallBackRoutine
UPC - 033317198566
View all Texas Instruments TI89 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 159 highlights
Chapter 11: Creating the User Interface 117 11.5.1. Figure 11.2: Screen Shot from Test Menu Example DIALOG Boxes DIALOG DialogName, DialogWidth, DialogHeight, CallBackRoutine { DYNPOPUP {Flags, x, y}, Text, GetDynPopupRoutine, OptionListIndex DYNHEADER {Flags, x, y}, PDB1, PDB2 EDIT {Flags, x, y}, Text, BufferOffset, FieldLength, DisplayLength HEADER {Flags, x, y}, Text, PDB1, PDB2 HEDIT {Flags, x, y},Text, 0, 0, DisplayLength MENU {Flags, x, y}, MenuName POPUP {Flags, x, y}, Text, PopupName, OptionListIndex SCROLL_REGION {Flags, x, y}, x1, y1, Index0, Index1, NumDspFields, TotNumFields, FieldHeight TEXT {Flags, x, y}, Text XFLAGS {Flags, x, y}, FlagVal1, FlagVal2, FlagVal3, FlagVal4 } DialogName is the name given to the dialog box structure. The generated .h file is included to reference the dialog box from a C program. DialogWidth and DialogHeight define the width and height of the dialog box in pixels. If either or both is zero, then the system will set them to the maximum values used by the dialog box at the time the dialog box is executed. CallBackRoutine is the name of the call-back function used for the dialog box. See section 11.4.4. Dialog Call-Backs for a description of call-backs. Each item within the dialog structure has a Flags byte and an (x, y) coordinate of the upper left pixel of the field. All coordinates in a dialog box are relative to the upper left corner of the dialog box. TI-89 / TI-92 Plus Developer Guide Not for Distribution Beta Version January 26, 2001