ctrlVisible: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (template:command argument fix)
(17 intermediate revisions by 10 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|C]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.97|C]]
____________________________________________________________________________________________
[[Category:Scripting Commands ArmA|C]]


back to [[Scripting_Reference#C|COMREF]]
| ofp |= Game name


<h2 style="color:#000066"> '''ctrlVisible ''idc'''''</h2>
|1.5|= Game version


|arg= local |= Arguments in MP
____________________________________________________________________________________________


'''Operand types:'''
| Returns 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:''' [[Number]]
| [[Boolean]] <nowiki>=</nowiki> '''ctrlVisible''' idc |SYNTAX=


'''Type of returned value:'''
|p1= idc: [[Number]] - control ID |PARAMETER1=


[[Boolean]]
| [[Boolean]] - true if the control is shown, false if not |RETURNVALUE=
____________________________________________________________________________________________
 
|x1= <code>_bool = [[ctrlVisible]] 100;</code> |EXAMPLE1=
____________________________________________________________________________________________


'''Compatibility:'''
| [[ctrlShow]], [[ctrlShown]] |SEEALSO=


Added in version '''1.50'''
}}


'''Description:'''
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


Return if control with id '''idc''' of topmost user [[dialog]] is visible.
<!-- Note Section END -->
</dl>


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


'''Example:'''
[[Category:Scripting Commands|CTRLVISIBLE]]
 
[[Category:Scripting Commands OFP 1.99|CTRLVISIBLE]]
_visible = '''ctrlVisible''' 100
[[Category:Scripting Commands OFP 1.96|CTRLVISIBLE]]
[[Category:Scripting Commands ArmA|CTRLVISIBLE]]
[[Category:Command_Group:_GUI_Control|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]

Revision as of 15:37, 7 April 2019

Hover & click on the images for description

Description

Description:
Returns 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:
Boolean = ctrlVisible idc
Parameters:
idc: Number - control ID
Return Value:
Boolean - true if the control is shown, false if not

Examples

Example 1:
_bool = ctrlVisible 100;

Additional Information

See also:
ctrlShowctrlShown

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