ctrlEnabled: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[[cC]ategory:[sS]cripting [cC]ommands\|[a-z A-Z 0-9_]+\]\]" to "")
m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}")
Line 32: Line 32:
|x2= <pre>_enabled = ctrlEnabled _control</pre>
|x2= <pre>_enabled = ctrlEnabled _control</pre>


| [[ctrlEnable]]
|seealso= [[ctrlEnable]]
}}
}}



Revision as of 23:28, 16 February 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
GUI Control

Syntax

Syntax:
Syntax needed
Parameters:
idc: Number - control ID
Return Value:
Return value needed

Alternative Syntax

Syntax:
Boolean = ctrlEnabled controlName
Parameters:
controlName: Control
Return Value:
Boolean

Examples

Example 1:
if (!(ctrlEnabled 100)) then
{
  ctrlEnable [100, true]
};
Example 2:
_enabled = ctrlEnabled _control

Additional Information

See also:
ctrlEnable

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