Create Windows form in a GM extension (C++)
I'm a really beginner in GM SDK, and I'm trying to open a Windows Form by clicking on a toobar button.
When I create a Windows Form, Visual Studio doesn't recognize it (because I'm not in the CLR compiler which is uncompatible with the debugger chosen).
Could you tell me if I can use Windows Forms in exensions for GM (and how) ? Or should I use ressources (create dialogs,...)?
Thank you
When I create a Windows Form, Visual Studio doesn't recognize it (because I'm not in the CLR compiler which is uncompatible with the debugger chosen).
Could you tell me if I can use Windows Forms in exensions for GM (and how) ? Or should I use ressources (create dialogs,...)?
Thank you
Answers
-
Hello,
You will need to use Windows resources to create a dialog in a Global Mapper extension. You can't use Windows Forms. You can use an MFC CDialog-based class to implement a dialog. The Overview Extension sample included with the SDK shows how to use a modeless dialog. You can also use a Modal dialog, if that is what you need.
Cheers,
Bob -
Thank you very much Bob!
Categories
- 12.4K All Categories
- 5.4K Features Discussion
- 314 Downloading Imagery
- 1.3K Elevation Data
- 377 Georeferencing Imagery Discussion
- 603 GM Script Language
- 49 User Scripts
- 112 GPS Features
- 394 Projection Questions
- 800 Raster Data
- 1.3K Vector Data
- 6.5K Support
- 161 Announcement and News
- 890 Bug Report
- 556 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 537 Other Discussion
- 128 GIS Data Sources
- 26 Global Mapper Showcase
- 224 How I use Global Mapper
- 104 Global Mapper Forum Website