Important: The information in this document is obsolete and should not be used for new development.
LRect
You can use theLRect
procedure to find a rectangle that encloses a cell. Because the List Manager automatically draws cells, few applications need to call this procedure directly.
PROCEDURE LRect (VAR cellRect: Rect; theCell: Cell; lHandle: ListHandle);
cellRect
- The
LRect
procedure returns in this parameter the rectangle enclosing the cell, specified in local coordinates of the list's graphics port. This rectangle is not necessarily within the list's rectangle.theCell
- The cell for which an enclosing rectangle is sought.
lHandle
- The list containing the cell specified by the parameter
theCell
.DESCRIPTION
TheLRect
procedure calculates the coordinates of the rectangle enclosing the cell specified by thetheCell
parameter. The procedure does not check whether the cell is actually contained within the list's visible rectangle.If the
theCell
parameter specifies cell coordinates not contained within the list, theLRect
procedure sets thecellRect
parameter to (0,0,0,0).SPECIAL CONSIDERATIONS
You should not call theLRect
procedure from within an interrupt, such as in a completion routine or VBL task.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theLRect
procedure are
Trap macro Selector _Pack0 $004C