The mouse and keyboard input events of Text Validator are, in fact, events of Text Editor built into Text Validator. They are used to monitor user input in Text Validator and, if necessary, respond to it. The input events of Text Validator which has been opened using the Check Spelling button of Text Editor, are translated to Text Editor (not to Text Validator).
- Report information about mouse moving and clicking, key pressing, and scrolling.
- Cancel operations.
Methods
| Name | Description |
|---|---|
| OnChar | Called when a keystroke translates to a character. Delivers to the client the character code, repeat count, and some additional information about the keystroke. Allows you to cancel operation. |
| OnKeyDown | Called when a key is pressed while a component has focus. Delivers to the client the key code, repeat count, and modification keys used. Allows you to cancel operation. |
| OnKeyUp | Called when a key is released while a component has focus. Delivers to the client the key code, repeat count, and modification keys used. Allows you to cancel operation. |
| OnMouseButtonDown | Called when the mouse pointer is over a component and a mouse button is pressed. Delivers to the client information on the mouse button which is pressed, and the coordinates of the mouse pointer. |
| OnMouseButtonUp | Called when the mouse pointer is over a component and a mouse button is released. Delivers to the client information on the mouse button which is released, and the coordinates of the mouse pointer. |
| OnMouseDoubleClick | Called when a component is double-clicked. Delivers to the client information on the coordinates of the mouse pointer and modification keys have been used. |
| OnMouseMove | Called when the mouse pointer is moved over a component. Delivers to the client information on the coordinates of the mouse pointer and modification keys have been used. |
| OnMouseWheel | Called when the mouse wheel moves while a component has focus. Delivers to the client information on the coordinates of the mouse pointer, the amount the mouse wheel has been moved, and modification keys have been used. |
| OnScroll | Called when the scroll box has been moved by either a mouse or keyboard action. Delivers to the client the scroll-bar code, scroll-box position, and the number of scrolled lines. Allows you to cancel operation. |
