Important: The information in this document is obsolete and should not be used for new development.
LClick
To process a mouse-down event in a list, use theLClickfunction.
FUNCTION LClick (pt: Point; modifiers: Integer; lHandle: ListHandle): Boolean;
pt- The location in local coordinates of the mouse-down event. Your application can simply call
GlobalToLocal(myEvent.where)and then passmyEvent.wherein this parameter.modifiers- An integer value corresponding to the
modifiersfield of the event record.lHandle- The list in which the mouse-down event occurred.
DESCRIPTION
TheLClickfunction responds to the mouse-down event whose location and modifiers are specified by theptandmodifiersparameters. TheLClickfunction handles all user interaction until the user releases the mouse button. TheLClickfunction returnsTRUEif the click was a double-click, orFALSEotherwise.If the
ptparameter specifies a portion of the list's visible rectangle, then cells are selected with an algorithm that depends on the list's selection flags and on themodifiersparameter. If the user drags the cursor above or below the list's 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 list's visible rectangle and horizontal autoscrolling is enabled, then the List Manager horizontally autoscrolls the list.If the
ptparameter specifies a point within the list's scroll bar, then the List Manager calls the scroll bar's control definition procedure to track the cursor and it scrolls the list appropriately.SPECIAL CONSIDERATIONS
You should not call theLClickfunction from within an interrupt, such as in a completion routine or VBL task.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theLClickfunction are
Trap macro Selector _Pack0 $0018 SEE ALSO
For information on enabling and disabling autoscrolling, see "About the List Manager" beginning on page 4-13. For information on responding to mouse-down events, see "Responding to Events Affecting a List" on page 4-23.