displayCtrl: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
m (Text replacement - ">Posted on May ([0-9]{1}), ([0-9]{4})" to ">Posted on $2-05-0$1")
 
(48 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command


| arma1 |Game name=
|game1= arma1
|version1= 1.00


|1.00|Game version=
|game2= arma2
|version2= 1.00


|gr1= GUI Control |GROUP1=
|game3= arma2oa
|version3= 1.50


| Return child control with specified idc. |DESCRIPTION=
|game4= tkoh
|version4= 1.00


| [[Control]] <nowiki>=</nowiki> display '''displayCtrl''' idc |SYNTAX=
|game5= arma3
|version5= 0.50


|p1= display: [[Display]] |PARAMETER1=
|gr1= GUI Control


|p2= idc: [[Number]] |PARAMETER2=
|descr= Return child control with specified idc.


| [[Control]] |RETURNVALUE=
|s1= display [[displayCtrl]] idc
 
|x1= <code>_ChildControl = _ParentDisplay [[displayCtrl]] 101;</code> |EXAMPLE1=


| [[findDisplay]], [[ctrlCreate]], [[ctrlDelete]], [[ctrlModel]], [[ctrlSetModel]], [[ctrlPosition]], [[ctrlSetPosition]], [[ctrlClassName]], [[ctrlModelScale]], [[ctrlSetModelScale]], [[ctrlModelDirAndUp]], [[ctrlSetModelDirAndUp]], [[displayParent]]  |SEEALSO=
|p1= display: [[Display]]


|p2= idc: [[Number]]
|r1= [[Control]]
|s2= [[displayCtrl]] idc
|s2since= arma3 2.06
|p21= idc: [[Number]]
|r2= [[Control]]
|x1= <sqf>_displayControl = _ParentDisplay displayCtrl 101;</sqf>
|x2= <sqf>_dialogControl = displayCtrl 101;</sqf>
|seealso= [[findDisplay]] [[ctrlCreate]] [[ctrlDelete]] [[ctrlModel]] [[ctrlSetModel]] [[ctrlPosition]] [[ctrlSetPosition]] [[ctrlClassName]] [[ctrlModelScale]] [[ctrlSetModelScale]] [[ctrlModelDirAndUp]] [[ctrlSetModelDirAndUp]] [[displayParent]]
}}
}}


<h3 style="display:none">Notes</h3>
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
 
<dl class="command_description">
<dt></dt>
<dd class="notedate">Posted on May 1, 2017 - 03:44 (UTC)</dd>
<dd class="notedate">Posted on 2017-05-01 - 03:44 (UTC)</dd>
<dt class="note">[[User:Demellion|Demellion]]</dt>
<dt class="note">[[User:Demellion|Demellion]]</dt>
<dd class="note">
<dd class="note">
Since '''Arma 3 1.42''' you can also return a control inside a controls group using [[controlsGroupCtrl]] (created with [[ctrlCreate]] or inside a controls[] of a control config). Example:
Since '''{{arma3}} 1.42''' you can also return a control inside a controls group using [[controlsGroupCtrl]] (created with [[ctrlCreate]] or inside a controls[] of a control config). Example:
<code>((uiNamespace getVariable "RscUnitInfo") displayCtrl 2303) controlsGroupCtrl 154; // Display -> Controls Group -> Control</code>
<sqf>((uiNamespace getVariable "RscUnitInfo") displayCtrl 2303) controlsGroupCtrl 154; // Display -> Controls Group -> Control</sqf>
Note that control inside controls group having '''-1 IDC''' currently cannot be returned in any way.
Note that control inside controls group having '''-1 IDC''' currently cannot be returned in any way.
</dd>
</dd>
</dl>
</dl>
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|DISPLAYCTRL]]
{{GameCategory|arma1|Scripting Commands}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}

Latest revision as of 23:01, 13 May 2023

Hover & click on the images for description

Description

Description:
Return child control with specified idc.
Groups:
GUI Control

Syntax

Syntax:
display displayCtrl idc
Parameters:
display: Display
idc: Number
Return Value:
Control

Alternative Syntax

Syntax:
displayCtrl idc
Parameters:
idc: Number
Return Value:
Control

Examples

Example 1:
_displayControl = _ParentDisplay displayCtrl 101;
Example 2:
_dialogControl = displayCtrl 101;

Additional Information

See also:
findDisplay ctrlCreate ctrlDelete ctrlModel ctrlSetModel ctrlPosition ctrlSetPosition ctrlClassName ctrlModelScale ctrlSetModelScale ctrlModelDirAndUp ctrlSetModelDirAndUp displayParent

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
Posted on 2017-05-01 - 03:44 (UTC)
Demellion
Since Arma 3 1.42 you can also return a control inside a controls group using controlsGroupCtrl (created with ctrlCreate or inside a controls[] of a control config). Example:
((uiNamespace getVariable "RscUnitInfo") displayCtrl 2303) controlsGroupCtrl 154; // Display -> Controls Group -> Control
Note that control inside controls group having -1 IDC currently cannot be returned in any way.