ctrlChecked: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma3 | | arma3 | ||
|0.50 | |0.50 | ||
|gr1= GUI Control | |gr1= GUI Control | ||
| Returns the current state of given [[CT_CHECKBOXES]] control. Since Arma 3 v1.71.141591 it is possible to query multiple checkboxes by providing checkbox index. For more information see [[CT_CHECKBOXES]].<br><br> | | Returns the current state of given [[CT_CHECKBOXES]] control. Since Arma 3 v1.71.141591 it is possible to query multiple checkboxes by providing checkbox index. For more information see [[CT_CHECKBOXES]].<br><br> | ||
{{Informative | The <tt>"CheckBoxesSelChanged"</tt> control EH returns the control, index of changed checkbox and its current checked state. The checked state however is not a [[Boolean]] but [[Number]] 0 or 1. To convert [[ctrlChecked]] command output into number as well, use [[parseNumber]] command}} | {{Informative | The <tt>"CheckBoxesSelChanged"</tt> control EH returns the control, index of changed checkbox and its current checked state. The checked state however is not a [[Boolean]] but [[Number]] 0 or 1. To convert [[ctrlChecked]] command output into number as well, use [[parseNumber]] command}} | ||
| '''ctrlChecked''' control | | '''ctrlChecked''' control | ||
|p1= control: [[Control]] - [[CT_CHECKBOXES]] control. If control contain multiple checkboxes, only checkbox with index 0 is queried. | |p1= control: [[Control]] - [[CT_CHECKBOXES]] control. If control contain multiple checkboxes, only checkbox with index 0 is queried. | ||
| [[Boolean]] - [[true]] checked, [[false]] unchecked | | [[Boolean]] - [[true]] checked, [[false]] unchecked | ||
|s2= control '''ctrlChecked''' index {{Since|arma3|1.71.141591|y}} | |s2= control '''ctrlChecked''' index {{Since|arma3|1.71.141591|y}} | ||
|p21= control: [[Control]] - [[CT_CHECKBOXES]] control |PARAMETER21= | |p21= control: [[Control]] - [[CT_CHECKBOXES]] control |PARAMETER21= | ||
|p22= index: [[Number]] - checkbox index |PARAMETER22= | |p22= index: [[Number]] - checkbox index |PARAMETER22= | ||
|r2= [[Boolean]] - [[true]] checked, [[false]] unchecked | |r2= [[Boolean]] - [[true]] checked, [[false]] unchecked | ||
|x1= <code>[[ctrlChecked]] _control;</code> | |x1= <code>[[ctrlChecked]] _control;</code> | ||
|x2= <code>_control [[ctrlChecked]] 3;</code> | |x2= <code>_control [[ctrlChecked]] 3;</code> | ||
| [[ctrlSetChecked]], [[cbChecked]], [[cbSetChecked]] | | [[ctrlSetChecked]], [[cbChecked]], [[cbSetChecked]] | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= |
Revision as of 00:27, 18 January 2021
Description
- Description:
- Returns the current state of given CT_CHECKBOXES control. Since Arma 3 v1.71.141591 it is possible to query multiple checkboxes by providing checkbox index. For more information see CT_CHECKBOXES.
- Groups:
- GUI Control
Syntax
- Syntax:
- ctrlChecked control
- Parameters:
- control: Control - CT_CHECKBOXES control. If control contain multiple checkboxes, only checkbox with index 0 is queried.
- Return Value:
- Boolean - true checked, false unchecked
Alternative Syntax
- Syntax:
- control ctrlChecked index Template:Since
- Parameters:
- control: Control - CT_CHECKBOXES control
- index: Number - checkbox index
- Return Value:
- Boolean - true checked, false unchecked
Examples
- Example 1:
ctrlChecked _control;
- Example 2:
_control ctrlChecked 3;
Additional Information
- See also:
- ctrlSetCheckedcbCheckedcbSetChecked
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