ctrlRemoveEventHandler: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (example, seealso) |
No edit summary |
||
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. 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. | |||
</dd> | |||
</dl> | |||
<!-- DISCONTINUE Notes --> |
Revision as of 02:54, 9 February 2016
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.