Important: The information in this document is obsolete and should not be used for new development.
GlobalToLocal
To convert the coordinates of a point from global coordinates to the local coordinates of the current graphics port (basic or color), use theGlobalToLocal
procedure.
PROCEDURE GlobalToLocal (VAR pt: Point);
pt
- The point whose global coordinates are to be converted to local coordinates.
DESCRIPTION
TheGlobalToLocal
procedure takes a point expressed in global coordinates (where the upper-left corner of the main screen has coordinates [0,0]) and converts it into the local coordinates of the current graphics port.SEE ALSO
Listing 2-4 on page 2-17 illustrates how to useGlobalToLocal
to convert a point in an event reported by the Event Manager functionWaitNextEvent
to local coordinates as required by the Control Manager functionFindControl
.