Texas Instruments TI89 Developer Guide - Page 122
Application Control Flow, WinOpen, TE_handleEvent, MenuEnd
UPC - 033317198566
View all Texas Instruments TI89 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 122 highlights
80 Chapter 9: Application Control Flow 0x702 0x703 0x704 0x705 0x706 0x707 CM_START Sent to an application when it is being started. Included in the start message is a rectangle with the requested window location and size chosen by the user from the mode screen settings. This rectangle is passed into WinOpen to create the application's initial window. Some applications display a Current/Open/New submenu on the APPS menu. The startCode field of the start message (StartInfo) tells the application which submenu command the user chose. CM_ACTIVATE More than one application may be visible on the screen, but only one at a time can interact with the user. The activate message is sent to an application to designate it as the interactive center of attention. Most event messages are directed to the active application until it receives a deactivate message. The active application should highlight its window border to make it apparent to the user which window is active. The default event handler displays the application's registered menu. CM_FOCUS Tells the application to turn on its cursor flash. This message is normally handled by the text editor event handler. See TE_handleEvent. CM_UNFOCUS Tells the application to turn off its cursor flash. This message is normally handled by the text editor event handler. See TE_handleEvent. CM_DEACTIVATE Sent to the active application to inform it that it no longer holds the interactive center of attention. The default event handler calls MenuEnd to release registered menu memory. CM_QUIT Tells the application to prepare to quit. The application should save its data and release any memory handles it allocated. TI-89 / TI-92 Plus Developer Guide Not for Distribution Beta Version January 26, 2001