ctrlEnable: 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|CTRLENABLE]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|CTRLENABLE]]
____________________________________________________________________________________________
[[Category:Scripting Commands ArmA|CTRLENABLE]]
 
| ofpr |= Game name


|1.5|= Game version


<h2 style="color:#000066"> '''ctrlEnable [''idc'', ''enable'']'''</h2>
|arg= local |= Arguments in MP


|eff= local |= Effects in MP
____________________________________________________________________________________________


'''Operand types:'''
| Enable or disable a control of the currently active user dialog. Disabled controls cannot be clicked onto. Read [[Dialog Control]] for more information about user dialogs and controls. |= Description
____________________________________________________________________________________________


'''[idc, enable]:''' [[Array]]
| '''ctrlEnable''' [idc, enable] |= Syntax


'''Type of returned value:'''
|p1= idc: [[Integer]] - control ID |= Parameter 1


[[Nothing]]
|p2= enable: [[Boolean]] - true to enable the dialog, false to disable it |= Parameter 2


'''Compatibility:'''
| [[Nothing]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>ctrlEnable [100,false]</pre> |= Example 1
____________________________________________________________________________________________


Added in version '''1.50'''
| [[ctrlEnabled]] |= See also


'''Description:'''
}}


'''Enable / disable''' the control with id '''idc''' of topmost user [[dialog]].
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
</dl>


'''Example:'''
<h3 style="display:none">Bottom Section</h3>


'''ctrlEnable''' [100, [[false]]]
[[Category:Scripting Commands|CTRLENABLE]]
[[Category:Scripting Commands OFP 1.96|CTRLENABLE]]
[[Category:Scripting Commands ArmA|CTRLENABLE]]

Revision as of 00:11, 2 August 2006

Hover & click on the images for description

Description

Description:
Enable or disable a control of the currently active user dialog. Disabled controls cannot be clicked onto. Read Dialog Control for more information about user dialogs and controls.
Groups:
Uncategorised

Syntax

Syntax:
ctrlEnable [idc, enable]
Parameters:
idc: Integer - control ID
enable: Boolean - true to enable the dialog, false to disable it
Return Value:
Nothing

Examples

Example 1:
ctrlEnable [100,false]

Additional Information

See also:
ctrlEnabled

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