Skip to Main Content
Centro de soporte de Cognex
LogoLogo

How to Use Button and Event for the Same Function

Workaround for allowing a Button and an Event to trigger the same function

15/09/2024

Question

When referencing a button to the event property of a function, it is not possible to issue an event to trigger the function.  How can I have a Button and Event trigger the same function?

Answer

Add the Event to the Button in the Event Property. 

Recursos relacionados

Loading component...