Important: The information in this document is obsolete and should not be used for new development.
FindServiceWindow
TheFindServiceWindow
function 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
where
field of the Event Manager event record).theWindow
- A pointer to a Window Manager window pointer (defined by the
WindowPtr
data 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
TheFindServiceWindow
function is similar to the Window ManagerFindWindow
function, except thatFindServiceWindow
searches the floating window service
layer only.
FindServiceWindow
calls the Window ManagerFindWindow
function. 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,
FindServiceWindow
returnsinDesk
(0) as its function result, and sets the return parametertheWindow
toNIL
.SEE ALSO
TheFindWindow
function 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.