MapWindow 4 - ActiveX Control Programming : MapWindow Discussion Forum
Hi all, I have downloaded the 4.8 release of MapWinGIS ocx (MapWinGIS-only-v4.8SR-32bit-installer) and I am trying to develop some basic C# app using it (in VS2010). Well, I added the MapControl component to VS Toolbox (MapWinGIS.ocx). After, following some samp
MapWinGIS 4.8 ocx Map and Legend components
Posted by: evemar ()
Date: December 30, 2011 01:43PM

Hi all,

I have downloaded the 4.8 release of MapWinGIS ocx (MapWinGIS-only-v4.8SR-32bit-installer) and I am trying to develop some basic C# app using it (in VS2010).

Well, I added the MapControl component to VS Toolbox (MapWinGIS.ocx).
After, following some samples and forum messages, have also added the Legend component by browsing the MapWinInterfaces.dll located inside the MapWindow 4 install dir.

So far so good, but:

1. After I drop a MapControl (axMap1) and a Legend (legend1) to my form, why the property Map from the Legend component shows (none) (VS properties panel)
? Shouldn't appear there the axMap1 as option?
Ok, I have searched the forum and found that the declaration:
legend1.Map = (MapWinGIS.Map)axMap1.GetOcx();
Solves the problem. But, when I uncheck the layer visibility in the legend it does not change the visibility of the layer in the Map. Do I need to do this manually?

2. There's also an ocx version of the Legend component - it is outdated, correct? Should I use it? Wich one is recomended?

3. Why the Legend component is not included in the same instalation of OCX?

4. Digging a little more, I also added the components from MapWindow.Controls.dll: ProjectionTreeView, GisToolBox, DataGridViewMW, ProjectionMap, LayersControl, ProjectionTextBox.
How to use them? There is some documentation?

If someone could provide a simple app showing just a MapControl, a Legend and a DataGrid all working together, would be very very appreciated!

Best wishes,
Evemar

Evemar Wernick
Curitiba-Brasil

Options: ReplyQuote
Re: MapWinGIS 4.8 ocx Map and Legend components
Posted by: sampath ()
Date: January 24, 2012 10:00PM

I Had done similar excercise except grid control.

But i am unable to upload it due to size restriction in our network.

If you can send your code. I will try to help out.

Options: ReplyQuote
Re: MapWinGIS 4.8 ocx Map and Legend components
Posted by: bendel_boy ()
Date: March 11, 2012 06:06AM

I only have v4.8 installed, and no legend object ... and I'm trying (and failing) to dislay a legend.

Options: ReplyQuote
Re: MapWinGIS 4.8 ocx Map and Legend components
Posted by: sindizzy ()
Date: March 14, 2012 05:32PM

Some sample projects here:

[www.mapwindow.org]

AGP

Options: ReplyQuote
Re: MapWinGIS 4.8 ocx Map and Legend components
Posted by: bendel_boy ()
Date: March 15, 2012 03:48AM

Unfortunately the VB6 legend project fails, as it depends upon an PCX that is not present on my PC.

Options: ReplyQuote
Re: MapWinGIS 4.8 ocx Map and Legend components
Posted by: bendel_boy ()
Date: March 15, 2012 03:48AM

Just seen thatt he resizer is in yet another folder ... sorry!

Options: ReplyQuote


Sorry, only registered users may post in this forum.





Banner Exchange




GISCP.com




Send us your banner logo (160x120) for the space above, and add this MapWindow banner ad to your site:

Just paste this text in your page: