displayCtrl: Difference between revisions
 (controls group tip)  | 
				m (template:command argument fix)  | 
				||
| Line 7: | Line 7: | ||
____________________________________________________________________________________________  | ____________________________________________________________________________________________  | ||
| Return child control with specified idc. |=   | | Return child control with specified idc. |DESCRIPTION=  | ||
____________________________________________________________________________________________  | ____________________________________________________________________________________________  | ||
| [[Control]] <nowiki>=</nowiki> display '''displayCtrl''' idc |=   | | [[Control]] <nowiki>=</nowiki> display '''displayCtrl''' idc |SYNTAX=  | ||
|p1= display: [[Display]] |=   | |p1= display: [[Display]] |PARAMETER1=  | ||
|p2= idc: [[Number]] |=   | |p2= idc: [[Number]] |PARAMETER2=  | ||
| [[Control]] |=   | | [[Control]] |RETURNVALUE=  | ||
____________________________________________________________________________________________  | ____________________________________________________________________________________________  | ||
|x1= <code>_ChildControl = _ParentDisplay [[displayCtrl]] 101;</code> |=   | |x1= <code>_ChildControl = _ParentDisplay [[displayCtrl]] 101;</code> |EXAMPLE1=  | ||
____________________________________________________________________________________________  | ____________________________________________________________________________________________  | ||
| [[findDisplay]], [[ctrlCreate]], [[ctrlDelete]], [[ctrlModel]], [[ctrlSetModel]], [[ctrlPosition]], [[ctrlSetPosition]], [[ctrlClassName]], [[ctrlModelScale]], [[ctrlSetModelScale]], [[ctrlModelDirAndUp]], [[ctrlSetModelDirAndUp]], [[displayParent]]  |=   | | [[findDisplay]], [[ctrlCreate]], [[ctrlDelete]], [[ctrlModel]], [[ctrlSetModel]], [[ctrlPosition]], [[ctrlSetPosition]], [[ctrlClassName]], [[ctrlModelScale]], [[ctrlSetModelScale]], [[ctrlModelDirAndUp]], [[ctrlSetModelDirAndUp]], [[displayParent]]  |SEEALSO=  | ||
}}  | }}  | ||
Revision as of 14:38, 7 April 2019
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 -> ControlNote that control inside controls group having -1 IDC currently cannot be returned in any way.