ctrlMousePosition: Difference between revisions
Jump to navigation
Jump to search
m (fixed link in description) |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 6: | Line 6: | ||
|gr1= GUI Control |GROUP1= | |gr1= GUI Control |GROUP1= | ||
|descr= Returns position of the mouse on the screen relative to UI Control in UI coordinates. |Description= | |descr= Returns position of the mouse on the screen relative to UI Control in UI coordinates. |Description= | ||
Line 13: | Line 12: | ||
|pr= |Problems= | |pr= |Problems= | ||
|s1= [[ctrlMousePosition]] control |Syntax= | |s1= [[ctrlMousePosition]] control |Syntax= | ||
Line 20: | Line 18: | ||
|r1= [[Array]] |Return Value= | |r1= [[Array]] |Return Value= | ||
|x1= <code>_mousePos = [[ctrlMousePosition]] _ctrl;</code> |Example 1= | |x1= <code>_mousePos = [[ctrlMousePosition]] _ctrl;</code> |Example 1= | ||
|seealso= [[setMousePosition]] [[getMousePosition]] [[controlsGroupCtrl]] [[ctrlParentControlsGroup]] |See Also= | |seealso= [[setMousePosition]] [[getMousePosition]] [[controlsGroupCtrl]] [[ctrlParentControlsGroup]] |See Also= |
Revision as of 00:37, 17 January 2021
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
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
Bottom Section
- 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).