![]() |
TextServiceMenuSelect |
||||
Header: | TextServices.h | Carbon status: | Unsupported | |
Lets a text service component handle commands from its menus.
ComponentResult TextServiceMenuSelect ( ComponentInstance ts, MenuRef serviceMenu, SInt16 item );
A component instance created by a prior call to the Component Manager OpenComponent function.
A Menu Manager menu handle (defined by the MenuHandle data type) to a specific text service component menu.
The text service component menu item that the user has selected.
The text service component receiving this call should return 0 for componentResult if it did not handle the menu selection, and 1 if it did.
If you are writing a text service component, it must implement a function for this call.
When the user makes a menu selection, the client application calls TSMMenuSelect; the Text Services Manager in turn calls TextServiceMenuSelect to all active components. After the text service component performs the chosen task, it is not responsible for removing the highlighting from the menu title.
Client applications also may make this call, but the Text Services Manager does not play a role in the connection between the client application making the call and the text service component receiving it. If you are an application making this call, you need to know the component instance of the component whose function you are calling.
Not supported in Carbon. Not available in Carbon.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)