Important: The information in this document is obsolete and should not be used for new development.
FindServiceWindow
TheFindServiceWindowfunction determines which part of a text service component's floating window a mouse-down event has occurred in.
FUNCTION FindServiceWindow (thePoint: Point; VAR theWindow: WindowPtr): Integer;
thePoint- The point where the mouse button was pressed (in global coordinates, as stored in the
wherefield of the Event Manager event record).theWindow- A pointer to a Window Manager window pointer (defined by the
WindowPtrdata type) that identifies the floating window in which the mouse-down event occurred. If the mouse-down event did not occur in a text service component floating window, this parameter is set toNIL.DESCRIPTION
TheFindServiceWindowfunction is similar to the Window ManagerFindWindowfunction, except thatFindServiceWindowsearches the floating window service
layer only.
FindServiceWindowcalls the Window ManagerFindWindowfunction. It returns one of the following predefined constants to identify the location of the mouse-down event.
Constant Value Explanation (Continued) inDesk 0 None of the following inMenuBar 1 In menu bar inSysWindow 2 In system window inContent 3 In content region (except grow, if active) inDrag 4 In drag region inGrow 5 In grow region (active window only) inGoAway 6 In go-away region (active window only) inZoomIn 7 In zoom-in region inZoomOut 8 In zoom-out region It the mouse position is not over a floating window,
FindServiceWindowreturnsinDesk(0) as its function result, and sets the return parametertheWindowtoNIL.SEE ALSO
TheFindWindowfunction is described in the Window Manager chapter of
Inside Macintosh: Macintosh Toolbox Essentials.Event records are described in the Event Manager chapter of Inside Macintosh: Macintosh Toolbox Essentials.
The Process Manager is described in Inside Macintosh: Processes.