ctrlRemoveEventHandler: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 51: Line 51:
<dt class="note">[[User:Pierre MGI|Pierre MGI]]</dt>
<dt class="note">[[User:Pierre MGI|Pierre MGI]]</dt>
<dd class="note">
<dd class="note">
A "remove" command doesn't delete the attached handle. Handle stays as a variable (local or global in its name space).
A "remove" command doesn't delete the attached handle (_id). This handle (_id) 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;
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.
In this way, you can toggle on/off your EH's, with add/remove, without weird result due to a forgotten handle.

Revision as of 03:56, 9 February 2016

Hover & click on the images for description

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

See also:
ctrlAddEventHandlerctrlRemoveAllEventHandlers

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 (_id). This handle (_id) 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.