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.8K All Categories
- 5.7K Features Discussion
- 345 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 636 GM Script Language
- 54 User Scripts
- 114 GPS Features
- 417 Projection Questions
- 825 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 178 Announcement and News
- 912 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 569 Other Discussion
- 131 GIS Data Sources
- 27 Global Mapper Showcase
- 238 How I use Global Mapper
- 107 Global Mapper Forum Website