Important: The information in this document is obsolete and should not be used for new development.
LRect
You can use theLRectprocedure 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
LRectprocedure 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
TheLRectprocedure calculates the coordinates of the rectangle enclosing the cell specified by thetheCellparameter. The procedure does not check whether the cell is actually contained within the list's visible rectangle.If the
theCellparameter specifies cell coordinates not contained within the list, theLRectprocedure sets thecellRectparameter to (0,0,0,0).SPECIAL CONSIDERATIONS
You should not call theLRectprocedure from within an interrupt, such as in a completion routine or VBL task.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theLRectprocedure are
Trap macro Selector _Pack0 $004C