Important: The information in this document is obsolete and should not be used for new development.
MyClickLoopA click-loop procedure must have the following syntax:
DESCRIPTIONIf your application defines a custom click-loop procedure, then the
LClickfunction repeatedly calls the procedure until the user releases the mouse button. A click-loop procedure may perform any processing desired when it is executed.
Because no parameters are passed to the click-loop procedure, your click-loop procedure probably needs to access a global variable that contains a handle to the list record, which contains information about the location of the cursor and other information potentially of interest to a click-loop procedure. You might also create a global variable that stores the state of the modifier keys immediately before a call to the
LClickfunction. You would need to set these global variables immediately before calling
A click-loop procedure should ordinarily set the Z flag to 1 just before returning. If a click-loop procedure sets the Z flag to 0, then the
LClickfunction immediately returns.
SPECIAL CONSIDERATIONSA click-loop procedure does not execute at interrupt time. Instead, it is called directly by the
LClickfunction. Thus, a click-loop procedure can allocate memory, and it does not need to adjust the value contained in the A5 register.
ASSEMBLY-LANGUAGE INFORMATIONYour click-loop procedure should ordinarily set register D0 to 1. To stop the
LClickfunction from calling your procedure for the current mouse-down event, set register D0 to 0.
For your convenience, register D5 contains the current mouse location.