Using TextEdit's Default Click Procedure
Using TextEdit's Default Click Procedure
TextEdit's default click procedure for automatic scrolling (which can be
replaced using the clikLoop hook) depends on the value in the clickTime field in
the edit record. When TextEdit's click procedure, TEClick, is called,
clickTime contains the time when the TEClick procedure was last called.
TextEdit now adjusts the value in clickTime within its default click
procedure to allow slower scrolling to occur.
If you modify this value inside your own click procedure, be aware that
TextEdit resets it to the current tick count upon exit from the TEClick
procedure and uses the new value at reentry when TEClick is subsequently
called.