ctrlMapPosition: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{RV|type=command |game1= arma3 |version1= 2.08 |branch= dev |gr1= GUI Control - Map |descr= Returns map position in format [x, y, w, h]. If map is inside a Controls group,...")
 
m (Some wiki formatting)
 
(4 intermediate revisions by 2 users not shown)
Line 3: Line 3:
|game1= arma3
|game1= arma3
|version1= 2.08
|version1= 2.08
|branch= dev


|gr1= GUI Control - Map
|gr1= GUI Control - Map


|descr= Returns map position in format [x, y, w, h]. If map is inside a Controls group, the x and y position is relative to the controls group top left corner.
|descr= A getter for [[ctrlMapSetPosition]]. Returns map position in format [x, y, w, h]. If map is inside a Controls Group, the x and y position is relative to the Controls Group top left corner.


|s1= [[ctrlMapPosition]] map
|s1= [[ctrlMapPosition]] map
Line 15: Line 14:
|r1= [[Array]] - [x, y, w, h]
|r1= [[Array]] - [x, y, w, h]


|x1= <code>[[ctrlMapPosition]] _map;</code>
|x1= <sqf>ctrlMapPosition _map;</sqf>


|seealso= [[ctrlMapSetPosition]], [[ctrlCreate]]
|seealso= [[ctrlMapSetPosition]] [[ctrlCreate]]
}}
}}

Latest revision as of 13:46, 3 May 2022

Hover & click on the images for description

Description

Description:
A getter for ctrlMapSetPosition. Returns map position in format [x, y, w, h]. If map is inside a Controls Group, the x and y position is relative to the Controls Group top left corner.
Groups:
GUI Control - Map

Syntax

Syntax:
ctrlMapPosition map
Parameters:
map: Control - Map control
Return Value:
Array - [x, y, w, h]

Examples

Example 1:
ctrlMapPosition _map;

Additional Information

See also:
ctrlMapSetPosition ctrlCreate

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