Carbon


Text Custom Hook Constants

Header: TextEdit.h

enum {
    intEOLHook = 0,
    intDrawHook = 1,
    intWidthHook = 2,
    intHitTestHook = 3,
    intNWidthHook = 6,
    intTextWidthHook = 7,
    intInlineInputTSMTEPreUpdateHook = 8,
    intInlineInputTSMTEPostUpdateHook = 9
};

Constant descriptions

intEOLHook

End-of-line hook

intDrawHook

Draw hook

intWidthHook

Width measurement hook

intHitTestHook

Hit test hook

intNWidthHook

New width measurement hook

intTextWidthHook

Text width measurement hook (low-memory global width measurement hook)

intInlineInputTSMTEPreUpdateHook
intInlineInputTSMTEPostUpdateHook

To specify a default TextEdit hook function with a customized function, you specify one of the following constants as the value of the which parameter to the TECustomHook function.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)