displayCtrl: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) No edit summary |
Lou Montana (talk | contribs) m (Text replacement - ">Posted on May ([0-9]{1}), ([0-9]{4})" to ">Posted on $2-05-0$1") |
||
(25 intermediate revisions by 2 users not shown) | |||
Line 20: | Line 20: | ||
|descr= Return child control with specified idc. | |descr= Return child control with specified idc. | ||
|s1= display [[displayCtrl]] idc | |||
|s1= | |||
|p1= display: [[Display]] | |p1= display: [[Display]] | ||
Line 28: | Line 26: | ||
|p2= idc: [[Number]] | |p2= idc: [[Number]] | ||
|r1=[[Control]] | |r1= [[Control]] | ||
|s2= [[displayCtrl]] idc | |||
| | |s2since= arma3 2.06 | ||
|p21= idc: [[Number]] | |p21= idc: [[Number]] | ||
| | |r2= [[Control]] | ||
|x1= <sqf>_displayControl = _ParentDisplay displayCtrl 101;</sqf> | |||
|x2= <sqf>_dialogControl = displayCtrl 101;</sqf> | |||
|x2= < | |||
|seealso= [[findDisplay]] | |seealso= [[findDisplay]] [[ctrlCreate]] [[ctrlDelete]] [[ctrlModel]] [[ctrlSetModel]] [[ctrlPosition]] [[ctrlSetPosition]] [[ctrlClassName]] [[ctrlModelScale]] [[ctrlSetModelScale]] [[ctrlModelDirAndUp]] [[ctrlSetModelDirAndUp]] [[displayParent]] | ||
}} | }} | ||
<dl class="command_description"> | <dl class="command_description"> | ||
<dt></dt> | <dt></dt> | ||
<dd class="notedate">Posted on | <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 ''' | 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: | ||
< | <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> |
Latest revision as of 23:01, 13 May 2023
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:
- Example 2:
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:
Note that control inside controls group having -1 IDC currently cannot be returned in any way.((uiNamespace getVariable "RscUnitInfo") displayCtrl 2303) controlsGroupCtrl 154; // Display -> Controls Group -> Control
Categories:
- Scripting Commands
- Introduced with Armed Assault version 1.00
- ArmA: Armed Assault: New Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: GUI Control