ctrlRemoveEventHandler
Jump to navigation
Jump to search
Description
- Description:
- Remove a given event handler from the given control.
- Groups:
- Uncategorised
Syntax
- Syntax:
- control ctrlRemoveEventHandler [handler name,id]
- Parameters:
- control: Control -
- [handler name,id]: Array -
- Return Value:
- Nothing
Examples
- Example 1:
_map ctrlRemoveEventHandler ["Draw", _id];
Additional Information
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
Notes
Bottom Section
- Posted on February 9, 2016 - 01:54 (UTC)
- Pierre MGI
- A "remove" command doesn't delete the attached handle. Handle stays as a variable (local or global in its name space). If you need to erase all traces of a CtrlEH, use this command then your_handle = nil; In this way, you can toggle on/off your EH's, with add/remove, without weird result due to a forgotten handle.