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


|1.5|= Game version


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


|eff= local |= Effects in MP
____________________________________________________________________________________________


'''Operand types:'''
| Set if a control of the currently active user dialog is shown or not. Read [[Dialog Control]] for more information about user dialogs and controls. |= Description
____________________________________________________________________________________________


'''[idc, show]:''' [[Array]]
| '''ctrlShow''' [idc, show] |= Syntax


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


[[Nothing]]
|p2= show:: [[Boolean]] - true if the control should be shown, false if not |= Parameter 2


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


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


'''Description:'''
}}


'''Show / hide''' 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>


'''ctrlShow''' [100, [[true]]]
[[Category:Scripting Commands|CTRLSHOW]]
[[Category:Scripting Commands OFP 1.96|CTRLSHOW]]
[[Category:Scripting Commands ArmA|CTRLSHOW]]

Revision as of 23:34, 1 August 2006

Hover & click on the images for description

Description

Description:
Set if a control of the currently active user dialog is shown or not. Read Dialog Control for more information about user dialogs and controls.
Groups:
Uncategorised

Syntax

Syntax:
ctrlShow [idc, show]
Parameters:
idc: Integer - control ID
show:: Boolean - true if the control should be shown, false if not
Return Value:
Nothing

Examples

Example 1:
ctrlShow [100,false]

Additional Information

See also:
ctrlVisible

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