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:
12.1
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
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
MBS(
"MapView.CreateWithSize"; /* Creates a new map view inside the window with the given rectangle. */
$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.e.g. 0 */
$x; /* The left coordinate in the window.e.g. 0 */
$y; /* The top coordinate in the window.e.g. 0 */
$w; /* The width of the image view in the window.e.g. 100 */
$h) /* The height of the image view in the window.e.g. 100 */
Less
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
This function checks for a license.
Created 14th January 2019, last changed 19th February 2021
MapView.CreateWithControl
-
MapView.FormatDistance