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: More Macintosh Toolbox /
Chapter 4 - List Manager / List Manager Reference
List Manager Routines / Getting Information About Cells


LLastClick

You can use the LLastClick function to determine the coordinates of the last cell clicked in a particular list.

FUNCTION LLastClick (lHandle: ListHandle): Cell;
lHandle
The list to be checked for the last cell clicked.
DESCRIPTION
The LLastClick function returns the cell coordinates of the last cell clicked. If the user has not clicked a cell since the creation of the list, then both the h and v fields of the cell returned contain negative numbers.

Note that the last cell clicked is not necessarily the last cell selected. The user could Shift-click in one cell and then drag the cursor to select other cells.

SPECIAL CONSIDERATIONS
You should not call the LLastClick function from within an interrupt, such as in a completion routine or VBL task.

ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for the LLastClick function are
Trap macroSelector
_Pack0$0040


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996