![]() |
LClick |
||||
Header: | Lists.h | Carbon status: | Supported | |
Processes a mouse-down event in a list.
Boolean LClick ( Point pt, SInt16 modifiers, ListHandle lHandle );
The location in local coordinates of the mouse-down event. Your application can simply call GlobalToLocal(myEvent.where) and then pass myEvent.where in this parameter.
If the pt parameter specifies a portion of the lists visible rectangle, then cells are selected with an algorithm that depends on the lists selection flags and on the modifiers parameter. If the user drags the cursor above or below the lists visible rectangle and vertical autoscrolling is enabled, then the List Manager vertically autoscrolls the list. If the user drags the cursor to the right or the left of the lists visible rectangle and horizontal autoscrolling is enabled, then the List Manager horizontally autoscrolls the list.
If the pt parameter specifies a point within the lists scroll bar, then the List Manager calls the scroll bars control definition function to track the cursor and it scrolls the list appropriately.
An integer value corresponding to the modifiers field of the event record.
The list in which the mouse-down event occurred.
TRUE if the click was a double-click, or FALSE otherwise.
The LClick function handles all user interaction until the user releases the mouse button.
This function is contained in a resource of resource type 'PACK'. Calling it could result in the loading of the package resource and the allocation of memory. Thus, your application should not call this function from within an interrupt, such as in a completion function or VBL task.
Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)