# GUI Control - Event Handlers (scripting commands)

- [ctrlAddEventHandler](../../commands/ctrlAddEventHandler.md): Add an event handler to the given control.
- [ctrlRemoveAllEventHandlers](../../commands/ctrlRemoveAllEventHandlers.md): Remove all event handlers from the given control.
- [ctrlRemoveEventHandler](../../commands/ctrlRemoveEventHandler.md): Remove a given event handler from the given control.
- [ctrlSetEventHandler](../../commands/ctrlSetEventHandler.md) **[deprecated]**: Sets given event handler of given control: any previously added event handler is removed.
- [displayAddEventHandler](../../commands/displayAddEventHandler.md): Adds an event handler to the given display. See User Interface Event Handlers for the full list of event names.
- [displayRemoveAllEventHandlers](../../commands/displayRemoveAllEventHandlers.md): Remove all event handlers from the given display.
- [displayRemoveEventHandler](../../commands/displayRemoveEventHandler.md): Remove a given event handler from the given display.
- [displaySetEventHandler](../../commands/displaySetEventHandler.md): Sets given event handler of given display. The return code of the provided function should indicate whether this event was handled correctly.
- [inGameUISetEventHandler](../../commands/inGameUISetEventHandler.md): Sets given event handler of in-game UI. If EH function returns true, performed action is overridden.
