ctrlRemoveEventHandler: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
(Moving note to talk, has nothing to do with removeEH command)
Line 45: Line 45:
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_GUI_Control|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_GUI_Control|{{uc:{{PAGENAME}}}}]]
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on February 9, 2016 - 01:54 (UTC)</dd>
<dt class="note">[[User:Pierre MGI|Pierre MGI]]</dt>
<dd class="note">
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.
</dd>
</dl>
<!-- DISCONTINUE Notes -->

Revision as of 09:22, 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