displayCtrl: Difference between revisions
Jump to navigation
Jump to search
m (formatting) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 20: | Line 20: | ||
|descr= Return child control with specified idc. | |descr= Return child control with specified idc. | ||
|s1= | |s1= display [[displayCtrl]] idc | ||
|p1= display: [[Display]] | |p1= display: [[Display]] | ||
Line 26: | Line 26: | ||
|p2= idc: [[Number]] | |p2= idc: [[Number]] | ||
|r1=[[Control]] | |r1= [[Control]] | ||
|s2= | |s2= [[displayCtrl]] idc {{Since|arma3|2.06<!--2.05.147770-->|y}} | ||
|p21= idc: [[Number]] | |p21= idc: [[Number]] | ||
| | |r2= [[Control]] | ||
Line 42: | Line 42: | ||
}} | }} | ||
<dl class="command_description"> | <dl class="command_description"> | ||
Line 49: | Line 48: | ||
<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: | ||
<code>((uiNamespace getVariable "RscUnitInfo") displayCtrl 2303) controlsGroupCtrl 154; | <code>(([[uiNamespace]] [[getVariable]] "RscUnitInfo") [[displayCtrl]] 2303) [[controlsGroupCtrl]] 154; {{cc|Display -> Controls Group -> Control}}</code> | ||
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> |
Revision as of 13:58, 19 June 2021
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 Template:Since
- Parameters:
- idc: Number
- Return Value:
- Control
Examples
- Example 1:
_displayControl = _ParentDisplay displayCtrl 101;
- Example 2:
_dialogControl = displayCtrl 101;
Additional Information
- See also:
- findDisplayctrlCreatectrlDeletectrlModelctrlSetModelctrlPositionctrlSetPositionctrlClassNamectrlModelScalectrlSetModelScalectrlModelDirAndUpctrlSetModelDirAndUpdisplayParent
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 May 1, 2017 - 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.
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