Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
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
- ImageView.CreateWithSize
- MapView.Release
- TextView.CreateWithSize
- Window.FindByIndex
- Window.FindByTitle
Example Databases
Blog Entries
This function checks for a license.
Created 14th January 2019, last changed 19th February 2021