MapWindow 4 - ActiveX Control Programming : MapWindow Discussion Forum
Hi, my company has finally made the switch from version 4.6 to 4.8 and everything seems to be working just fine but I was wondering if there was any prebuilt properties forms similar to the DotSpatial controls to view and edit layers in a legend? I know that I can get the properties myself but I di
Layer Properties Form
Posted by:
radioheadCDA ()
Date: July 02, 2012 10:56AM
Hi, my company has finally made the switch from version 4.6 to 4.8 and everything seems to be working just fine but I was wondering if there was any prebuilt properties forms similar to the DotSpatial controls to view and edit layers in a legend? I know that I can get the properties myself but I didn't want to "reinvent the wheel" if it has already been done. I know in the SVN source there is a LegendEditor source code and we were actually using it with our 4.6 version of the OCX but for some reason I was thinking there was an updated version. I've also looked into the "mwSymbology" plugin but I'm pretty sure this is just for DotSpatial. Any information on this would be greatly appreciated. Thanks!
Re: Layer Properties Form
Posted by:
pmeems ()
Date: July 02, 2012 12:13PM
The legend editor has been updated a bit so you can use that one.
mwSymbology is for MapWindow4 not for DotSpatial so you can use that as well.
I would recommend not to create a custom application but create a plug-in. That will give you all the benefits of MW4.8.6
--
Paul
--
Don't forget to read the new documentation: www.mapwindow.org/documentation/mapwingis4.8
Join us Google+: MapWindow GIS Google+ Community
Join the MapWindow Group on LinkedIn! LinkedIn - MapWindow Group
Download the latest beta installer at:
tinyurl.com/mwMonthly 32-Bit
tinyurl.com/mwMonthlyx64 64-Bit
Follow me on Twitter MapWindow_nl to read when a new installer is published.
---
Paul Meems
The Netherlands
[www.bontepaarden.nl]
Release manager, configuration manager and
forum moderator of MapWindow GIS
Owner of MapWindow.nl - Support for
Dutch speaking users: www.mapwindow.nl
*******
Everything I say or write is my personal opinion and
not the opinion of the company I work for.
*******
View my profile on LinkedIn
mwSymbology is for MapWindow4 not for DotSpatial so you can use that as well.
I would recommend not to create a custom application but create a plug-in. That will give you all the benefits of MW4.8.6
--
Paul
--
Don't forget to read the new documentation: www.mapwindow.org/documentation/mapwingis4.8
Join us Google+: MapWindow GIS Google+ Community
Join the MapWindow Group on LinkedIn! LinkedIn - MapWindow Group
Download the latest beta installer at:
tinyurl.com/mwMonthly 32-Bit
tinyurl.com/mwMonthlyx64 64-Bit
Follow me on Twitter MapWindow_nl to read when a new installer is published.
---
Paul Meems
The Netherlands
[www.bontepaarden.nl]
Release manager, configuration manager and
forum moderator of MapWindow GIS
Owner of MapWindow.nl - Support for
Dutch speaking users: www.mapwindow.nl
*******
Everything I say or write is my personal opinion and
not the opinion of the company I work for.
*******
View my profile on LinkedIn
Re: Layer Properties Form
Posted by:
radioheadCDA ()
Date: July 02, 2012 12:17PM
I really appreciate your response. Is there any reason that my legend, when you double click it, it doesn't show the layer's properties? I was looking into mwSymbology and I think this would be great for our particular program but to be honest I don't know how to implement it. It requires an IMapWin interface as a parameter but we are working with an Axmap. I'm not sure how to cast from an Axmap to IMapWin. Thanks again for you help in our problem.
Re: Layer Properties Form
Posted by:
pmeems ()
Date: July 02, 2012 12:26PM
IMapWin interface is for plug-ins, so it is not easy to use it.
mwSymbology has the new layer properties form.
That's why I recommend creating a plug-in instead.
--
Don't forget to read the new documentation: www.mapwindow.org/documentation/mapwingis4.8
Join us Google+: MapWindow GIS Google+ Community
Join the MapWindow Group on LinkedIn! LinkedIn - MapWindow Group
Download the latest beta installer at:
tinyurl.com/mwMonthly 32-Bit
tinyurl.com/mwMonthlyx64 64-Bit
Follow me on Twitter MapWindow_nl to read when a new installer is published.
---
Paul Meems
The Netherlands
[www.bontepaarden.nl]
Release manager, configuration manager and
forum moderator of MapWindow GIS
Owner of MapWindow.nl - Support for
Dutch speaking users: www.mapwindow.nl
*******
Everything I say or write is my personal opinion and
not the opinion of the company I work for.
*******
View my profile on LinkedIn
mwSymbology has the new layer properties form.
That's why I recommend creating a plug-in instead.
--
Don't forget to read the new documentation: www.mapwindow.org/documentation/mapwingis4.8
Join us Google+: MapWindow GIS Google+ Community
Join the MapWindow Group on LinkedIn! LinkedIn - MapWindow Group
Download the latest beta installer at:
tinyurl.com/mwMonthly 32-Bit
tinyurl.com/mwMonthlyx64 64-Bit
Follow me on Twitter MapWindow_nl to read when a new installer is published.
---
Paul Meems
The Netherlands
[www.bontepaarden.nl]
Release manager, configuration manager and
forum moderator of MapWindow GIS
Owner of MapWindow.nl - Support for
Dutch speaking users: www.mapwindow.nl
*******
Everything I say or write is my personal opinion and
not the opinion of the company I work for.
*******
View my profile on LinkedIn
Re: Layer Properties Form
Posted by:
radioheadCDA ()
Date: July 02, 2012 12:29PM
I'm really not trying to be a pest, but when you say to create a plug-in, I'm a little confused. Do I need to create a separate project to create a plug-in to use in my main project or is there a way to implement mwSymbology as a plugin from within my own program.
Re: Layer Properties Form
Posted by:
pmeems ()
Date: July 02, 2012 12:52PM
When I mean you should create a plug-in I mean to create a plug-in for MapWindow Desktop not for your own custom application that just uses the ocx (MapWinGIS).
You create a plug-in that will do the same as your custom application does, but with all the benefits of the latest version of MapWindow. If you have set-up your source code nicely this isn't too much work.
A template plug-in can be found here: [svn.mapwindow.org]
If you look at the source code of mwSymbology you should be able to find some entry points to use the code in your custom application. But remember this plug-in wasn't designed to do so.
--
Paul
--
Don't forget to read the new documentation: www.mapwindow.org/documentation/mapwingis4.8
Join us Google+: MapWindow GIS Google+ Community
Join the MapWindow Group on LinkedIn! LinkedIn - MapWindow Group
Download the latest beta installer at:
tinyurl.com/mwMonthly 32-Bit
tinyurl.com/mwMonthlyx64 64-Bit
Follow me on Twitter MapWindow_nl to read when a new installer is published.
---
Paul Meems
The Netherlands
[www.bontepaarden.nl]
Release manager, configuration manager and
forum moderator of MapWindow GIS
Owner of MapWindow.nl - Support for
Dutch speaking users: www.mapwindow.nl
*******
Everything I say or write is my personal opinion and
not the opinion of the company I work for.
*******
View my profile on LinkedIn
You create a plug-in that will do the same as your custom application does, but with all the benefits of the latest version of MapWindow. If you have set-up your source code nicely this isn't too much work.
A template plug-in can be found here: [svn.mapwindow.org]
If you look at the source code of mwSymbology you should be able to find some entry points to use the code in your custom application. But remember this plug-in wasn't designed to do so.
--
Paul
--
Don't forget to read the new documentation: www.mapwindow.org/documentation/mapwingis4.8
Join us Google+: MapWindow GIS Google+ Community
Join the MapWindow Group on LinkedIn! LinkedIn - MapWindow Group
Download the latest beta installer at:
tinyurl.com/mwMonthly 32-Bit
tinyurl.com/mwMonthlyx64 64-Bit
Follow me on Twitter MapWindow_nl to read when a new installer is published.
---
Paul Meems
The Netherlands
[www.bontepaarden.nl]
Release manager, configuration manager and
forum moderator of MapWindow GIS
Owner of MapWindow.nl - Support for
Dutch speaking users: www.mapwindow.nl
*******
Everything I say or write is my personal opinion and
not the opinion of the company I work for.
*******
View my profile on LinkedIn
Re: Layer Properties Form
Posted by:
radioheadCDA ()
Date: July 02, 2012 12:56PM
Ok I appreciate the advice. Say I decide to use the built in Legend Editor that you were mentioning earlier. With the current legend control, you should be able to double click a layer and the legend editor should just appear, correct? Or am I missing something?
Thanks!
Thanks!
Re: Layer Properties Form
Posted by:
radioheadCDA ()
Date: July 05, 2012 12:33PM
Does anyone have any idea as to why it doesn't work for me? I've created a test form on our program, added the legend and connected it with an axmap, then loaded a shapefile into the legend. When I double click the layer on the legend, nothing comes up as far as properties. Thanks for any help.
Re: Layer Properties Form
Posted by:
sindizzy ()
Date: July 09, 2012 12:53AM
If its a separate control more than likely u have to instantiate it yourself. I'm interested in the control so I'll take a look tomorrow.
Re: Layer Properties Form
Posted by:
radioheadCDA ()
Date: July 10, 2012 07:10AM
Awesome, well I appreciate it.
Sorry, only registered users may post in this forum.


