Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 9.5   10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2    Statistic    FMM    Blog  

MapView.CreateWithSize

Creates a new map view inside the window with the given rectangle.

Component Version macOS Windows Linux Server iOS SDK
MapView 9.0 ✅ Yes ❌ No ❌ No ❌ No ✅ Yes
MBS( "MapView.CreateWithSize"; WindowRef; x; y; w; h )   More

Parameters

Parameter Description Example
WindowRef Window Reference is the unique OS level window ID. You can obtain this by using the Window.FindByTitle or Window.FindByIndex functions. Pass zero to access the frontmost window. 0
x The left coordinate in the window. 0
y The top coordinate in the window. 0
w The width of the image view in the window. 100
h The height of the image view in the window. 100

Result

Returns map view reference number or error.

Description

Creates a new map view inside the window with the given rectangle.
Use MapView.Release later to destroy the image view.

If you use a register (tab controls) on the window, be aware that the image view actually is in front of the register (tab controls). So you need to check in the script which register page is current and should show what image view. Or by a trigger you turn the visibility on and off.

Image view reference numbers are starting at 78000 and counting up for each new map view.

Not supported for MacOS 32-bit.
Does not work for Web Direct.

See also

Example Databases

Created 14th January 2019, last changed 19th February 2021


MapView.CreateWithControl - MapView.FormatDistance

Feedback: Report problem or ask question.