iv
Table of Contents
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
8.7. VAR-LINK
...........................................................................................................
76
9. Application Control Flow
.........................................................................
77
9.1. Event-Driven Architecture
..................................................................................
77
9.2. Event Structure Layout
.......................................................................................
78
9.3. Commands
.........................................................................................................
79
9.4. Starting and Stopping an Application
.................................................................
84
9.5. Keyboard Events
................................................................................................
85
9.6. Menu Processing
...............................................................................................
85
9.6.1. Static Menus
.........................................................................................................
86
9.6.2. Dynamic Menus
....................................................................................................
87
9.7. Paint Events
.......................................................................................................
88
9.8. Background Events
............................................................................................
88
9.9. Default Event Handler
........................................................................................
88
9.9.1. CM_KEY_PRESS
.................................................................................................
88
9.9.2. CM_PASTE_STRING
...........................................................................................
91
9.9.3. CM_PASTE_HANDLE
..........................................................................................
92
9.9.4. CM_STO
...............................................................................................................
92
9.9.5. CM_RCL
...............................................................................................................
92
9.9.6. CM_DEACTIVATE
...............................................................................................
92
9.9.7. CM_ACTIVATE
....................................................................................................
92
9.10. Installing, Moving, and Deleting an Application
................................................
92
10. Error Handling
......................................................................................
95
10.1. Throwing an Error
..........................................................................................
95
10.2. Delayed Error Messages
...............................................................................
95
10.3. Throwing Your Own Errors
............................................................................
96
10.4. Catching Errors
..............................................................................................
97
10.5. Cleaning Up
...................................................................................................
97
10.6. Caveats
..........................................................................................................
98
10.6.1. Jumping Out of TRY Blocks
..........................................................................
98
10.6.2. Referencing Auto Variables in ONERR/FINALLY Blocks
..............................
99
10.6.3. Where Not to Throw Errors
...........................................................................
99