displayCtrl: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 $2")
m (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 ")
Line 41: Line 41:
|x2= <code>_dialogControl = [[displayCtrl]] 101;</code>
|x2= <code>_dialogControl = [[displayCtrl]] 101;</code>


|seealso= [[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]]
}}
}}



Revision as of 16:29, 20 January 2022

Hover & click on the images for description

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:
_displayControl = _ParentDisplay displayCtrl 101;
Example 2:
_dialogControl = displayCtrl 101;

Additional Information

See also:
findDisplay ctrlCreate ctrlDelete ctrlModel ctrlSetModel ctrlPosition ctrlSetPosition ctrlClassName ctrlModelScale ctrlSetModelScale ctrlModelDirAndUpctrlSetModelDirAndUpdisplayParent

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.