displayCtrl: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma1 |Game name=
| arma1 |Game name=
Line 7: Line 6:


|gr1= GUI Control |GROUP1=
|gr1= GUI Control |GROUP1=
____________________________________________________________________________________________


| Return child control with specified idc. |DESCRIPTION=
| Return child control with specified idc. |DESCRIPTION=
____________________________________________________________________________________________


| [[Control]] <nowiki>=</nowiki> display '''displayCtrl''' idc |SYNTAX=
| [[Control]] <nowiki>=</nowiki> display '''displayCtrl''' idc |SYNTAX=
Line 19: Line 16:


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


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

Revision as of 00:46, 17 January 2021

Hover & click on the images for description

Description

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

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.

Bottom Section