Texas Instruments TI89 Developer Guide - Page 147
Menus, Convert a SCR_RECT structure to a WIN_RECT
UPC - 033317198566
View all Texas Instruments TI89 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 147 highlights
Chapter 11: Creating the User Interface 105 11.3. WinLineTo WinMoveRel WinMoveTo WinOpen WinPixGet WinPixSet WinRect WinRemove WinReOpen WinScrollH WinScrollV WinStr WinStrXY WinWidth - Draw a line from the current pen location. - Move the current pen location relative to its current position. - Move the current pen location. - Open a window. - Return the status of an individual pixel (on or off). - Set a pixel. - Draw a rectangle. - Close a window with the option to not update the screen. - Reopen a window keeping the duplicate image if the window's size does not change. - Scroll a region horizontally. - Scroll a region vertically. - Write a string to the current pen location. - Write a string to a specific location. - Return the width of a window's client region. Additionally, there are several utility routines for working with windows. CalcBitmapSize ClientToScr DrawWinBorder MakeWinRect MakeScrRect ScrToWin SetWinClip - Calculate the size of a bitmap given a pointer to a BITMAP structure. - Merge two SCR_RECTs. - Redraw the border for a window. - Create a WIN_RECT. - Create a SCR_RECT. - Convert a SCR_RECT structure to a WIN_RECT structure. - Set the clipping region for a window. Menus There are two menu types: toolbars and pop-ups. Pop-ups are, for the most part, toolbars without a menu bar, however, they may have a title (for an example see Figure 4.2). Menus are limited to three levels (not counting the menu bar). Menus are divided into two categories: static and dynamic. Examples of both are included at the end of this chapter. Like all resources, the text strings in a menu can be localized by using string reference numbers instead of actual text. Internally, menus are kept as a MENU structure that contain one or more MENU_ITEM structures at the end. Static menus are created with the resource TI-89 / TI-92 Plus Developer Guide Not for Distribution Beta Version January 26, 2001