Skip to main content

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.

_example_img_visu_event_handler.png

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

_example_icon.png DOWNLOAD Project