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 #158 background imageLoading...
Page #158 background image
116
Chapter 11: Creating the User Interface
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
bitmap is followed by a comma and a unique identifying name. The icon or
bitmap is referenced in the resource file by using a
*
character followed by the
icon/bitmap filename, a comma, and then the identifying name specified in the
icon/bitmap file. The following example creates a menu using both an icon and
several bitmaps from the file appr2.ico which follows. This example also creates
a pop-up using an embedded icon and an embedded bitmap as shown in
Figure 11.2.
TOOLBOX TestMenu, 0, 0, 0 {
"Text" {
*appr2.ico,
ICON_1
, ID_2
*appr2.ico,
BITMAP_1
, ID_3
}
*appr2.ico,
BITMAP_2
, ID_4
*appr2.ico,
BITMAP_3
, ID_5
}
POPUP TestPopup, 0, 0 {
[0x0000, 0xFFFE, 0x2FF9, 0x0BF9, 0x02F9, 0x00B9, 0x1029, 0x3006,
0x6000, 0x6000, 0xFFFF, 0xFFFF, 0x6000, 0x6000, 0xF000,
0x0000], ID_P1
[[12, 14, 0x7F, 0xFC, 0x40, 0x04, 0x4F, 0xC4, 0x40, 0x44, 0x40,
0x44, 0x4F, 0xC4, 0x48, 0x04, 0x48, 0x04, 0x48, 0x04, 0x4F, 0xC4,
0x40, 0x04, 0x7F, 0xFC]], ID_P2
}
// APPR2.ICO
[0x0000, 0xFFFE, 0x2FF9, 0x0BF9, 0x02F9, 0x00B9, 0x1029, 0x3006, 0x6000,
0x6000, 0xFFFF, 0xFFFF, 0x6000, 0x6000, 0xF000, 0x0000],
ICON_1
[[12, 14, 0x7F, 0xFC, 0x40, 0x04, 0x4F, 0xC4, 0x40, 0x44, 0x40, 0x44,
0x4F, 0xC4, 0x48, 0x04, 0x48, 0x04, 0x48, 0x04, 0x4F, 0xC4, 0x40,
0x04, 0x7F, 0xFC]],
BITMAP_1
[[15, 11, 0x00, 0x00, 0x08, 0x00, 0x0C, 0x00, 0x0E, 0x00, 0x0F, 0x00,
0x0F, 0x80, 0x0F, 0xC0, 0x0F, 0xE0, 0x0F, 0x00, 0x0F, 0x80, 0x0D,
0x80, 0x08, 0xC0, 0x00, 0xC0, 0x00, 0x60, 0x00, 0x60]],
BITMAP_2
[[12, 12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10,
0x00, 0x30, 0x00, 0x60, 0x00, 0xC0, 0x11, 0x80, 0x1B, 0x00, 0x0E,
0x00, 0x04, 0x00]],
BITMAP_3
Note that BITMAPs in menus are limited to a maximum of 16 rows and the
columns are limited to the width of a menu item. The main reason for using
BITMAPs in a menu is in the top-level toolbar. By using BITMAPs, the menu
system can reduce the total width of the top-level toolbar as shown in the
following image from the preceding example. Since the menu items associated
with F2 and F3 are bitmaps, the width of the corresponding tabs is not as wide as
if they had been defined as ICONs which are always assumed to be 16 by 16 in
a menu.

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