Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Text /
Chapter 7 - Text Services Manager / Text Services Manager Reference
Text Services Manager Routines for Components / Opening Floating Utility Windows


FindServiceWindow

The FindServiceWindow 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 to NIL.
DESCRIPTION
The FindServiceWindow function is similar to the Window Manager FindWindow function, except that FindServiceWindow searches the floating window service
layer only.

FindServiceWindow calls the Window Manager FindWindow function. It returns one of the following predefined constants to identify the location of the mouse-down event.
ConstantValueExplanation (Continued)
inDesk0None of the following
inMenuBar1In menu bar
inSysWindow2In system window
inContent3In content region (except grow, if active)
inDrag4In drag region
inGrow5In grow region (active window only)
inGoAway6In go-away region (active window only)
inZoomIn7In zoom-in region
inZoomOut8In zoom-out region

It the mouse position is not over a floating window, FindServiceWindow returns inDesk (0) as its function result, and sets the return parameter theWindow to NIL.

SEE ALSO
The FindWindow 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.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996