TE Edit Control Win32 / Win64 Help
Product page

Events

Standard events:

The control supports these standard events: Click, Double click, Got Focus, and Lost Focus, KeyDown, KeyPress, KeyUp. The KeyDown, KeyPress and KeyUp event take one integer parameter which passes the value of the key code.

Action:

This event is fired after completing a user action. Please refer to the 'Message Communication' chapter for a complete description of this event.

Hypertext event:

This event is fired when the user double clicks over a hypertext phrase. This event has two string type arguments. The first argument contains the content of the hypertext phrase (the double underlined text). The second argument contains the content of the hypertext code (the hidden text before the underlined text).

TextDrag

This event is fired before text drag/drop is begun from an external application, or from within the editor.

TextBeforeDrop

This event is fired immediately before the text is dropped from an external application, or from within the editor.

TextDrop

This event is fired when text is dropped from an external application, or from within the editor.

PreProcess:

This event is fired before completing a user action. Please refer to the 'Message Communication' chapter for a complete description of this event.

UpdateToolbar:

This event notifies your application to update any external toolbar the application might be using.

UpdateStatusbar:

This event notifies your application to update any external status bar the application might be using.

PageSizeChanging:

This event is fired before TE adjusts the page size. Please refer to the 'Message Communication' chapter for a complete description of this event.

SetUserField:

This event is fired when the editor encounters a user-field as the text is being rendered. This event uses two arguments. The first argument specifies the page number (zero based) where the user-field was encountered. The second argument provides the absolute text position of the field. The absolute text position can be converted into the line/column position using the TerAbsToRowCol method.

Typically your application would set the text value of the current user field when this event is encountered. The text for the field is set using the TerSetUserField method.