Problem with parameter NULL in function of SDK (C#)
Hello,
I don't know how give a NULL parameter for GM_Rectangle_t in the function "GM_DrawLayerList".
I tried lots of solutions and i read lots of posts on this forum but I have not been able to do it.
How do you declare a GM_Rectangle_t with a value NULL in C#?
Thanks in advance.
I don't know how give a NULL parameter for GM_Rectangle_t in the function "GM_DrawLayerList".
I tried lots of solutions and i read lots of posts on this forum but I have not been able to do it.
How do you declare a GM_Rectangle_t with a value NULL in C#?
Thanks in advance.
Comments
-
Hello,
If you want to pass it in as NULL you would need to declare it as an IntPtr rather than a GM_Rectangle_t. There isn't much point in passing it in as NULL though. If you pass it as NULL it would just draw everything that is loaded. You need it non-NULL to provide it a rectangle for any sort of zooming or panning. -
Hello,
Thank you for your answer.
Categories
- 12.9K All Categories
- 5.7K Features Discussion
- 346 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 643 GM Script Language
- 54 User Scripts
- 115 GPS Features
- 419 Projection Questions
- 829 Raster Data
- 1.4K Vector Data
- 6.6K Support
- 180 Announcement and News
- 926 Bug Report
- 561 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 574 Other Discussion
- 132 GIS Data Sources
- 27 Global Mapper Showcase
- 241 How I use Global Mapper
- 108 Global Mapper Forum Website