displayCtrl: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (see also) |
(controls group tip) |
||
Line 29: | Line 29: | ||
<dl class="command_description"> | <dl class="command_description"> | ||
<!-- Note Section BEGIN --> | <!-- Note Section BEGIN --> | ||
<dl class="command_description"> | |||
<dd class="notedate">Posted on May 1, 2017 - 03:44 (UTC)</dd> | |||
<dt class="note">[[User:Demellion|Demellion]]</dt> | |||
<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: | |||
<code>((uiNamespace getVariable "RscUnitInfo") displayCtrl 2303) controlsGroupCtrl 154; // Display -> Controls Group -> Control</code> | |||
Note that control inside controls group having '''-1 IDC''' currently cannot be returned in any way. | |||
</dd> | |||
</dl> | |||
<!-- Note Section END --> | <!-- Note Section END --> | ||
</dl> | </dl> |
Revision as of 02:00, 1 May 2017
Description
- Description:
- Return child control with specified idc.
- Groups:
- Uncategorised
Syntax
- Syntax:
- Control = display displayCtrl idc
- Parameters:
- display: Display
- idc: Number
- Return Value:
- Control
Examples
- Example 1:
_ChildControl = _ParentDisplay 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
Notes
- 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.