displayCtrl: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \{\{GameCategory\|[a-z]+[0-9]?\|Scripting Commands\}\}" to "") |
Killzone Kid (talk | contribs) No edit summary |
||
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 28: | Line 30: | ||
|r1=[[Control]] | |r1=[[Control]] | ||
|x1= <code> | |s2= '''displayCtrl''' idc | ||
|p21= idc: [[Number]] | |||
|r1=[[Control]] | |||
|x1= <code>_displayControl = _ParentDisplay [[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 08:05, 17 June 2021
Description
- Description:
- Return child control with specified idc.
- Groups:
- GUI Control
Syntax
Alternative Syntax
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.
Categories:
- Scripting Commands
- Introduced with Armed Assault version 1.00
- ArmA: Armed Assault: New Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: GUI Control