ctrlMapPosition: Difference between revisions

From Bohemia Interactive Community
m (Some wiki formatting)
mNo edit summary
 
Line 12: Line 12:
|p1= map: [[Control]] - [[CT_MAP|Map control]]
|p1= map: [[Control]] - [[CT_MAP|Map control]]


|r1= [[Array]] - [x, y, w, h]
|r1= [[Array]] with [x, y, w, h]
* x: [[Number]] - position in x
* y: [[Number]] - position in y
* w: [[Number]] - width of the map control
* h: [[Number]] - height of the map control


|x1= <sqf>ctrlMapPosition _map;</sqf>
|x1= <sqf>ctrlMapPosition _map;</sqf>

Latest revision as of 05:03, 3 January 2026

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 with [x, y, w, h]
  • x: Number - position in x
  • y: Number - position in y
  • w: Number - width of the map control
  • h: Number - height of the map control

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.
Only post proven facts here! Add Note