ctrlSetEventHandler: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|CTRLSETEVENTHANDLER]]
{{Command|= Comments
[[Category:Scripting Commands ArmA|CTRLSETEVENTHANDLER]]
____________________________________________________________________________________________


| arma |= Game name


<h2 style="color:#000066">'''''control'' ctrlSetEventHandler ''[handler name, function]'''''</h2>
|2.54|= Game version
____________________________________________________________________________________________


| Sets given event handler of given control. |= Description
____________________________________________________________________________________________


'''Operand types:'''
| control '''ctrlSetEventHandler''' [handler name, function] |= Syntax


'''control:''' [[Control]]
|p1= control: [[Control]] |= Parameter 1


'''[handler name, function]:''' [[Array]]
|p2= [handler name, function]: [[Array]] |= Parameter 2


'''Type of returned value:'''
| [[Nothing]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>_control ctrlSetEventHandler ["KeyDown", ""]</pre> |= Example 1
____________________________________________________________________________________________


[[Nothing]]
|  |= See also


'''Compatibility:'''
}}


Version 2.54 required.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


'''Description:'''
<!-- Note Section END -->
</dl>


Sets given event handler of given '''control'''.
<h3 style="display:none">Bottom Section</h3>


 
[[Category:Scripting Commands|CTRLSETEVENTHANDLER]]
'''Example:'''
[[Category:Scripting Commands ArmA|CTRLSETEVENTHANDLER]]
 
_control '''ctrlSetEventHandler''' ["KeyDown", ""]

Revision as of 00:17, 2 August 2006

-wrong parameter ("Arma") defined!-2.54
Hover & click on the images for description

Description

Description:
Sets given event handler of given control.
Groups:
Uncategorised

Syntax

Syntax:
control ctrlSetEventHandler [handler name, function]
Parameters:
control: Control
[handler name, function]: Array
Return Value:
Nothing

Examples

Example 1:
_control ctrlSetEventHandler ["KeyDown", ""]

Additional Information

See also:
See also needed

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