Important: The information in this document is obsolete and should not be used for new development.
TextServiceMenuSelect
TheTextServiceMenuSelect
function lets a text service component handle commands from its menus.
FUNCTION TextServiceMenuSelect (ts: ComponentInstance; serviceMenu: MenuHandle; item: Integer): ComponentResult;
ts
- A component instance created by a prior call to the Component Manager
OpenComponent
function.serviceMenu
- A Menu Manager menu handle (defined by the
MenuHandle
data type) to a specific text service component menu.item
- The text service component menu item that the user has selected.
DESCRIPTION
When the user makes a menu selection, the client application callsTSMMenuSelect
; the Text Services Manager in turn callsTextServiceMenuSelect
to all active components. The text service component receiving this call should return 0 forcomponentResult
if it did not handle the menu selection, and 1 if it did.After the text service component performs the chosen task, it is not responsible for removing the highlighting from the menu title.