displayCtrl: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \{\{GameCategory *\| *arma1 *\| *(New )?Scripting Commands\}\}" to "") |
Lou Montana (talk | contribs) m (Text replacement - "\| *(arg|eff|mp|serverExec|gr[0-9]) *= *(.*) * *\|([^=0-9]{12})" to "|$1=$2 |descr=$3") |
||
Line 18: | Line 18: | ||
|gr1= GUI Control | |gr1= GUI Control | ||
| Return child control with specified idc. | |descr= Return child control with specified idc. | ||
|s1= display '''displayCtrl''' idc | |s1= display '''displayCtrl''' idc |
Revision as of 21:03, 13 June 2021
Description
- Description:
- Return child control with specified idc.
- Groups:
- GUI Control
Syntax
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
- 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.