displayCtrl: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (formatting)
Line 19: Line 19:


|descr= Return child control with specified idc.
|descr= Return child control with specified idc.
{{Feature|Informative|Since Arma 3 v2.05.147770 alternative syntax is available for returning control from currently open dialog}}


|s1=  display '''displayCtrl''' idc
|s1=  display '''displayCtrl''' idc
Line 30: Line 28:
|r1=[[Control]]
|r1=[[Control]]


|s2=  '''displayCtrl''' idc
|s2=  '''displayCtrl''' idc {{Since|arma3|2.06<!--2.05.147770-->|y}}


|p21= idc: [[Number]]
|p21= idc: [[Number]]
Line 38: Line 36:


|x1= <code>_displayControl = _ParentDisplay [[displayCtrl]] 101;</code>
|x1= <code>_displayControl = _ParentDisplay [[displayCtrl]] 101;</code>
|x2= <code>_dialogControl = [[displayCtrl]] 101;</code>
|x2= <code>_dialogControl = [[displayCtrl]] 101;</code>



Revision as of 11:52, 17 June 2021

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 Template:Since
Parameters:
idc: Number
Return Value:
Nothing

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.