General Web control events
The following table shows the events for web controls.
The events for HTML elements (except for Clicking, DoubleClicking, Created, and Destroyed) are all asynchronous for performance reasons. Cancelling an event for a web control depends on the control. If the control has an inline event handler (onclick=”submitform()”). Setting the Cancel property will not cancel it. If, however, the control is a link or a Submit button which executes actions without a script, such as navigating to a link or submitting the form, setting the Cancel property to True will cancel these actions.
Events
Event | Description |
Click | Occurs when the user clicks anywhere on the control. |
Clicking | Occurs while the user clicks anywhere on the control. |
Copy | Occurs when the text in the control has been copied by either the Ctrl+C keystroke sequence or when selected as a menu option. This event is also triggered when the Cut event occurs. When the Cut command is used (Ctrl+X or menu option), the Copy event fires and then the Cut event fires. Unlike Windows controls, for web controls the Copy event block drop-down arrow does not expose the Text parameter. |
Created | Occurs when the control is matched. For more information, see WaitAll and WaitAny components. |
Cut | Occurs when the text in the control has been cut by either the
Ctrl+X keystroke sequence or when selected as a menu option. When
the Cut command is used (Ctrl+X or from the menu option), the Copy
event fires and then the Cut event fires. Unlike Windows controls,
for web controls the Cut event block drop-down arrow does not expose
the Text parameter. This event is not available for all application types. |
Destroyed | Occurs when the control is unmatched. |
Disposed | Occurs when the control is disposed by a call to the Dispose method. |
DoubleClick | Occurs when the user double-clicks anywhere on the control. |
DoubleClicking | Occurs while the user double-clicks anywhere on the control. |
GotFocus | Occurs when focus is given to the control. |
Hidden | Occurs when the Hide method is called on the control. |
InnerHTMLChanged | Occurs when the application uses the InnerHtml property to change the content of an element via Javascript. |
InnerTextChanged | Occurs when the application uses the InnerText property to change the content of an element via Javascript. |
KeyDown | Occurs when one or more keys are pressed while the control is in focus. |
KeyPress | Occurs when a key is pressed while the control has focus – triggered after the KeyDown event. |
KeyUp | Occurs when one or more keys are released while the control is in focus. |
LostFocus | Occurs when focus has left the control. |
MouseDown | Occurs when the user clicks the control with either mouse button. |
MouseUp | Occurs when the user releases a mouse button while the mouse is over the control. |
Paste | Occurs when the text in the control has been pasted from the
Windows Clipboard by either the Ctrl+V keystroke sequence or when
selected as a menu option. Unlike Windows controls, for web controls
the Paste event block drop-down arrow does not expose the Text
parameter. This event is not available for all application types. |
Shown | Occurs when the Show method is called on the control. |
TextChanged | Occurs when the Text property has changed. |
VisibilityChanged | Occurs when the Visible property has changed. |
Previous topic General Web component methods Next topic Text application properties