Difference between revisions of "ctrlMousePosition"

From Bohemia Interactive Community
Jump to navigation Jump to search
m
Line 35: Line 35:
  
 
<h3 style="display:none">Bottom Section</h3>
 
<h3 style="display:none">Bottom Section</h3>
 +
 +
<!-- CONTINUE Notes -->
 +
<dl class="command_description">
 +
<dd class="notedate">Posted on October 2, 2020 - 11:14 (UTC)</dd>
 +
<dt class="note">[[User:Dscha|Dscha]]</dt>
 +
<dd class="note">
 +
 +
[[ctrlMousePosition]] also do work with Controls within a [[:Category:Command_Group:_GUI_Control|Control Group]]. The return would be the position, relative to its parent position ([[ctrlParentControlsGroup]]).
 +
 +
</dd>
 +
</dl>
 +
<!-- DISCONTINUE Notes -->

Revision as of 12:14, 2 October 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

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