![]() |
TESetClickLoop |
||||
Header: | TextEdit.h | Carbon status: | Not Recommended | |
Installs the address of the application-supplied click loop function in the clikLoop field of the edit structure.
void TESetClickLoop ( TEClickLoopUPP clikProc, TEHandle hTE );
A universal procedure pointer to the customized click loop function.
A handle to the edit structure whose clikLoop field is to be modified.
The TESetClickLoop function lets you replace the default click loop function. The TEClick function repeatedly calls the function 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 function scrolls only the text. However, you can provide a customized click loop function that scrolls the text and the scroll bars in tandem.
If automatic scrolling is enabled, the default click loop function checks to see if the mouse has been dragged out of the view rectangle; if it has, the function scrolls the text using TEPinScroll. The amount by which TEPinScroll scrolls the text vertically is determined by the lineHeight field of the edit structure for monostyled text and the LHTable for multistyled text.
Not recommended 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)