ctrlMapPosition: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "\|seealso= ?\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 $2")
Line 17: Line 17:
|x1= <code>[[ctrlMapPosition]] _map;</code>
|x1= <code>[[ctrlMapPosition]] _map;</code>


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

Revision as of 14:12, 20 January 2022

Hover & click on the images for description
Only available in Development branch(es) until its release with Arma 3 patch v2.08.

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