Texas Instruments TI89 Developer Guide - Page 145
Window Regions and Coordinates, Creating the User Interface
![]() |
UPC - 033317198566
View all Texas Instruments TI89 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 145 highlights
Chapter 11: Creating the User Interface 103 11.2.1. windows. When an application is started (gets the CM_START message), it gets a WIN_RECT that defines the region of its window. This region is based on whether the calculator is in full or split screen mode and the side of the screen split of the current app. An app can create additional windows which may overlap. Window Regions and Coordinates A window region is limited to a rectangular area defined by two coordinate pairs: an x, y pair that defines the upper left corner of the region and an x, y pair that defines the lower right corner of the region. All window region coordinates are represented as signed 16-bit numbers. The coordinate (0, 0) is the upper left corner of a region. Since coordinates may be negative, the coordinate (L1, L1) is up one pixel and over one pixel to the left of the coordinate (0, 0). A window has three regions associated with it. The first region, the actual window, is the region that was defined when the window was created. The second region is the area of that window that may be drawn to, the client region. If the window is full screen (not counting the application's menu or the status bar which may not be overlapped), then the client region is equal to the window region. The client region is reduced by adding borders or a title to a window. Each window also has a clipping region which is a subset of the client region. Initially, the clipping region is equal to the client region but it may be changed by the app with the SetWinClip routine. The following graphic illustrates the three window regions. 6 FUHHQ : LQ G R Z & OLH Q W & OLS Figure 11.1: Window Regions Real windows are limited to the size of the screen. Virtual windows are allocated a bitmap in memory and are limited to unsigned coordinates of the region (0, 0) . . . (255, 255). The size of the virtual window must not exceed the maximum allowable block of heap memory. TI-89 / TI-92 Plus Developer Guide Not for Distribution Beta Version January 26, 2001
![](/manual_guide/products/texas-instruments-ti89-developer-guide-95b636f/145.png)