Hi,
It’s possible to bind the Enable option of an Event Action? Instead of checking with an script in each onMouseDown, I would like to disable the onMouse event action based on a property set on the session startup
Best regards
Hi,
It’s possible to bind the Enable option of an Event Action? Instead of checking with an script in each onMouseDown, I would like to disable the onMouse event action based on a property set on the session startup
Best regards
Mouse events work whether the component is enabled or not. It’s the actionPerfomed events that are tied to the enable property.
Yeah, my bad, I want to disable the Script action, not the event itself sorry.
Enabling/Disabling Actions is not something that can be modified through bindings. In the event there is logic which determines whether a Script Action would execute, that logic should either be in the script itself, or used to determine whether the Event which would invoke the Script Action should even occur (ie: use the logic you would use to determine whether the Script Action should be invoked to determine whether the button should be enabled).