Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.00

Description

Description:

Defines an event handler for a control. Overrides any previously assigned handlers, whether they were defined in the dialog itself or using this command. To add multiple event handlers, use ctrlAddEventHandler.

See VBS User Interface Event Handlers for the full list of handler names, and further details on the event properties.

Syntax

Syntax:control ctrlSetEventHandler [event, command]
Parameters:
Return Value:Nothing

Examples

Examples:
_control ctrlSetEventHandler ["KeyDown", "hint 'key pressed'; true"]
_control ctrlSetEventHandler ["LBSelChanged","['ListChange',_this] execVM 'eventScript.sqf'"]

Additional Information

See also: ctrlAddEventHandler, ctrlRemoveAllEventHandlers, displaySetEventHandler, VBS User Interface Event Handlers
Multiplayer: 
Problems: 

Notes