Texas Instruments TI89 Developer Guide - Page 964
destApp, event, EV_startApp
![]() |
UPC - 033317198566
View all Texas Instruments TI89 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 964 highlights
922 Appendix A: System Routines - Operating System EV_sendEvent Declaration: void EV_sendEvent (AppID destApp, Event * event) Category(ies): Operating System Description: Sends an event message to an application. The destination app receives and processes the event in its event handling entry point. Inputs: destApp - ID of the destination application. Use EV_getAppID to find an app's ID given its internal name. event - Pointer to event message. Outputs: None Assumptions: The destination app does not have to be started or active to receive messages. You should first start the app (EV_startApp) if it is important that the app be on the screen before it receives event. Applications may communicate with each other by sending interapplication messages, but this means of interfacing between apps is not recommended. Interapplication messaging is largely replaced with an object-oriented approach. Applications should communicate with each other through their frame interface. Apps can use this routine to send or forward OS events to other apps. Side Effects: None Availability: All versions of the TI-89 / TI-92 Plus. TI-89 / TI-92 Plus Differences: None See Also: Not applicable Example: /* Send keypress to another application */ void sendChar(AppID destApp, USHORT ch) { Event e; e.command = CM_KEY_PRESS; e.info.keyInfo.keyCode = ch; EV_sendEvent(destApp, &e); } /* send keypress command */ /* stuff character to send */ /* send event to dest app */ TI-89 / TI-92 Plus Developer Guide Not for Distribution Beta Version January 26, 2001
![](/manual_guide/products/texas-instruments-ti89-developer-guide-95b636f/964.png)