ctrlMousePosition: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Some wiki formatting) |
(added seeAlso) |
||
Line 16: | Line 16: | ||
|x1= <sqf>private _mouseRelPos = ctrlMousePosition _ctrl;</sqf> | |x1= <sqf>private _mouseRelPos = ctrlMousePosition _ctrl;</sqf> | ||
|seealso= [[setMousePosition]] [[getMousePosition]] | |seealso= [[ctrlSetMousePosition]] [[setMousePosition]] [[getMousePosition]] [[ctrlMapCursor]] | ||
}} | }} |
Latest revision as of 12:08, 7 May 2023
Description
- Description:
- Returns position of the mouse on the screen relative to UI Control in UI coordinates. Also works within CT_CONTROLS_GROUPs. In that case, returned position is relative to the position of the group.
- Groups:
- GUI Control - Positioning
Syntax
- Syntax:
- ctrlMousePosition control
- Parameters:
- control: Control
- Return Value:
- Array
Examples
- Example 1:
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