ctrlMousePosition

From Bohemia Interactive Community
Jump to navigation Jump to search
Introduced with Arma 3 version 2.002.00
Hover & click on the images for descriptions

Description

Description:
Returns position of the mouse on the screen relative to UI Control in UI coordinates.

Syntax

Syntax:
ctrlMousePosition control
Parameters:
control: Control
Return Value:
Array

Examples

Example 1:
_mousePos = ctrlMousePosition _ctrl;

Additional Information

See also:
setMousePosition getMousePosition controlsGroupCtrl ctrlParentControlsGroup
Groups:
GUI Control

Notes

i
Only post proven facts here. Report bugs on the Feedback Tracker and discuss on the Arma Discord or on the Forums.

Bottom Section

Posted on October 2, 2020 - 11:14 (UTC)
Dscha
ctrlMousePosition also do work with Controls within a Control Group. The return would be its position, relative to the parent position (ctrlParentControlsGroup).