Important: The information in this document is obsolete and should not be used for new development.
TextServiceMenuSelect
TheTextServiceMenuSelectfunction 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
OpenComponentfunction.serviceMenu- A Menu Manager menu handle (defined by the
MenuHandledata 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 callsTextServiceMenuSelectto all active components. The text service component receiving this call should return 0 forcomponentResultif 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.