Difference between revisions of "ctrlMousePosition"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <dl class="command_description"> <!-- BEGIN Note Section --> <!-- END Note Section --> </dl>" to "")
m (Text replacement - " " to " ")
Line 23: Line 23:
 
|seealso= [[setMousePosition]] [[getMousePosition]] [[controlsGroupCtrl]] [[ctrlParentControlsGroup]]
 
|seealso= [[setMousePosition]] [[getMousePosition]] [[controlsGroupCtrl]] [[ctrlParentControlsGroup]]
 
}}
 
}}
 
  
  

Revision as of 20:53, 31 January 2021

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 controlsGroupCtrl ctrlParentControlsGroup

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 October 2, 2020 - 11:14 (UTC)
Dscha
ctrlMousePosition also do work with Controls within a CT_CONTROLS_GROUP. The return would be its position, relative to the parent position (ctrlParentControlsGroup).