Important: The information in this document is obsolete and should not be used for new development.
ActivateTSMDocument
TheActivateTSMDocumentfunction instructs the Text Services Manager to mark the TSM document associated with a newly active window as active.
FUNCTION ActivateTSMDocument (idocID: TSMDocumentID): OSErr;
idocID- A TSM document identification number created by a prior call to the
NewTSMDocumentfunction (see page 7-50).DESCRIPTION
When a window that has an associated TSM document becomes active, your client application must call theActivateTSMDocumentfunction to inform the Text Services Manager that the document is activated and is ready to use text service components.
ActivateTSMDocumentcalls the equivalent text service component routineActivateTextService(see page 7-85) for all open text service components associated with the TSM document.If a text service component has a menu, the Text Services Manager inserts the menu into the menu bar.
RESULT CODES
noErr No error tsmInvalidDocIDErr Document is not a valid TSM document SEE ALSO
For sample code that uses theActivateTSMDocumentfunction, see Listing 7-3 on page 7-21.