SetClikLoop
SetClikLoop Install a routine for custom mouse dragging ProcPtr clikProc ; address of your custom routine SetClikLoop lets you get control as a user drags the mouse around the screen. Use this to provide "auto- scrolling" (i.e., when the user drags outside
of the viewing rectangle).
clikProc is the address of your custom drag-processing routine. Use NIL (0)
to revert to the standard handler.
variable-length TERec structure and identifies the edit record to be affected by this change.
be called repeatedly while the mouse button is pressed.
implement this feature (however, that will not update your scroll
bars).
Your click-loop routine receives no parameters and must always return
the pascal-version of TRUE. It should be declared as: {
if ( ! PtInRect( mousePt, &(*hTE)->viewRect ) { ... update the control value of your scroll bars ...
*/
}
return( TRUE ); /* ALWAYS return TRUE */ }
Install the routine via:
Or, just store the address into the TERec structure: Note that when your click loop gets control, the clip region will have been
set to the size of the viewRect, so before attempting to update scroll bars,
you will want to save the clip region (GetClip) and set a larger one