Example: Capture Events
Product: CODESYS Visualization
This example shows how to programmatically capture and handle events of a visualization. And how to implement the necessary interfaces for it.
Description
Three projects demonstrate the use of the Editbox Eventh Handler
, Key Event Handler
, and Mouse Event Handler
event handlers.
![]() |
Additional information
Project: EditboxHandler
This example shows how to implement the VisuElems.IEditBoxInputHandler
interface. The HandleKeyEvent
method is called by the event handler when a key is pressed.
Project: KeyEventHandler
This example shows how to implement the VisuElems.IEditBoxInputHandler
interface. The HandleKeyEvent
method is called by the event handler when a key is pressed.
Project: Mousehandler
This example shows how to implement the VisuElems.VisuElemBase.IMouseEventHandler
interface.
The HandleMouseBtnEvent
method is called by the event handler when a mouse button is pressed or released. The HandleMouseMoveEvent
method is called when the mouse is moved.
System requirements and restrictions
Programming system | CODESYS Development System (version 3.5.14.0 or higher) |
Runtime system | CODESYS Control Win (version 3.5.14.0 or higher) |
Add-on components | - |
Note
DOWNLOAD Project