ctrlSetMousePosition: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *P([a-gi-z ])" to "$1 - p$2")
 
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command
{{RV|type=command


|game1= arma3dev |Game name=
|game1= arma3
|version1= 2.02


|version= 2.01 |Game version=
|gr1= GUI Control - Positioning


|gr1= GUI Control |GROUP1=
|descr= Similar to [[setMousePosition]] but relative to the given control.


|descr= Similar to [[setMousePosition]] but relative to the given control. |Description=
|s1= control [[ctrlSetMousePosition]] [x, y]


|mp= |Multiplayer Behaviour=
|p1= control: [[Control]]


|pr= |Problems=
|p2= x: [[Number]] - position in x


|s1= control [[ctrlSetMousePosition]] Position |Syntax=
|p3= y: [[Number]] - position in y


|p1= control: [[Control]] |PARAMETER1=
|r1= [[Nothing]]
|p2= Position: [[Array]] |PARAMETER2=


|r1= [[Nothing]] |Return Value=
|x1= <sqf>_control ctrlSetMousePosition [0.5, 0.5];</sqf>


|x1= <code>_control [[ctrlSetMousePosition]] [0.5, 0.5];</code> |Example 1=
|seealso= [[ctrlMousePosition]] [[setMousePosition]] [[getMousePosition]] [[ctrlMapCursor]]
 
|seealso= [[setMousePosition]] |See Also=
}}
}}
<dl class="command_description">
<!-- BEGIN Note Section -->
<!-- END Note Section -->
</dl>
<h3 style="display:none">Bottom Section</h3>

Latest revision as of 15:45, 8 November 2023

Hover & click on the images for description

Description

Description:
Similar to setMousePosition but relative to the given control.
Groups:
GUI Control - Positioning

Syntax

Syntax:
control ctrlSetMousePosition [x, y]
Parameters:
control: Control
x: Number - position in x
y: Number - position in y
Return Value:
Nothing

Examples

Example 1:
_control ctrlSetMousePosition [0.5, 0.5];

Additional Information

See also:
ctrlMousePosition setMousePosition getMousePosition ctrlMapCursor

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