ctrlAt: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Page creation)
 
m (Fix wording)
Line 14: Line 14:
|p1= display: [[Display]] - the display to check
|p1= display: [[Display]] - the display to check


|p2= x: [[Number]] - '''relative''' display position (0 = left, 1 = right)
|p2= x: [[Number]] - position (0 = left, 1 = right)


|p3= y: [[Number]] - '''relative''' display position (0 = top, 1 = bottom)
|p3= y: [[Number]] - position (0 = top, 1 = bottom)


|r1= [[Control]] - the control at the specified coordinates, [[controlNull]] if none
|r1= [[Control]] - the control at the specified coordinates, [[controlNull]] if none

Revision as of 22:51, 14 November 2022

Hover & click on the images for description
Only available in Development branch(es) until its release with Arma 3 patch v2.12.

Description

Description:
Description
Groups:
GUI Control

Syntax

Syntax:
display ctrlAt [x, y]
Parameters:
display: Display - the display to check
x: Number - position (0 = left, 1 = right)
y: Number - position (0 = top, 1 = bottom)
Return Value:
Control - the control at the specified coordinates, controlNull if none

Examples

Example 1:
private _ctrl = _myDisplay ctrlAt [0.5, 0.5];

Additional Information

See also:
ctrlCreate ctrlSetPosition ctrlCommit

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