Important: The information in this document is obsolete and should not be used for new development.
TESetClickLoop
TheTESetClickLoopprocedure installs in theclikLoopfield of the edit record the address of the application-supplied click loop routine.
PROCEDURE TESetClickLoop (clickProc: ProcPtr; hTE: TEHandle);
clickProc- A pointer to the customized click loop routine.
hTE- A handle to the edit record whose
clikLoopfield is to be modified.DESCRIPTION
TheTESetClickLoopprocedure lets you replace the default click loop routine. TheTEClickprocedure repeatedly calls the routine that the click loop field points to as long as the user holds down the mouse button within the text of the view rectangle. The default click loop routine scrolls only the text. However, you can provide a customized click loop procedure that scrolls the text and the scroll bars in tandem.If automatic scrolling is enabled, the default click loop routine checks to see if the mouse has been dragged out of the view rectangle; if it has, the routine scrolls the text using
TEPinScroll. (For more information, see "TEPinScroll" on page 2-86.) The amount by whichTEPinScrollscrolls the text vertically is determined by thelineHeightfield of the edit record for monostyled text and theLHTablefor multistyled text.ASSEMBLY-LANGUAGE INFORMATION
You can directly set the click loop (clikLoop) field; you don't need to use theTESetClickLoopprocedure. Your routine should set register D0 to 1 and preserve register D2. Returning 0 in register D0 terminatesTEClick.