ctrlMousePosition: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
Line 22: Line 22:
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code></code> |Example 1=
|x1= <code>_mousePos = [[ctrlMousePosition]] _ctrl;</code> |Example 1=
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 16:25, 26 September 2020

-wrong parameter ("arma3dev") defined!-[[:Category:Introduced with arma3dev version |?]]
Hover & click on the images for description

Description

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

Syntax

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

Examples

Example 1:
_mousePos = ctrlMousePosition _ctrl;

Additional Information

See also:
setMousePosition getMousePosition

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

[[Category:Introduced with arma3dev version ]][[ Category: arma3dev: New Scripting Commands | CTRLMOUSEPOSITION]][[ Category: arma3dev: Scripting Commands | CTRLMOUSEPOSITION]]

Bottom Section