MapWindow 4 - ActiveX Control Programming : MapWindow Discussion Forum
Hi!I'm using the ActiveX Control to draw a map in a C# project.when I use the 'set_ShapeLineColor','set_ShapeLineWidth','set_ShapePointImageListID',all these functions can not work.what the problem? example: for (int i = 0; i < shapefile4.NumShapes;i++ ) {
Problem with the set_ShapeLineColor
Posted by:
longxiao ()
Date: May 14, 2012 01:26AM
Hi!I'm using the ActiveX Control to draw a map in a C# project.when I use the 'set_ShapeLineColor','set_ShapeLineWidth','set_ShapePointImageListID',all these functions can not work.what the problem?
example:
for (int i = 0; i < shapefile4.NumShapes;i++ )
{
string Region = shapefile4.get_CellValue(3, i).ToString();
Color col = ColorTranslator.FromHtml(Region);
UInt32 c = (Convert.ToUInt32(Math.Abs(col.ToArgb())));
axMap1.set_ShapeLineColor(inthandler4, i, c);
axMap1.set_ShapeLineWidth(inthandler4, i, 1);
}
example:
for (int i = 0; i < shapefile4.NumShapes;i++ )
{
string Region = shapefile4.get_CellValue(3, i).ToString();
Color col = ColorTranslator.FromHtml(Region);
UInt32 c = (Convert.ToUInt32(Math.Abs(col.ToArgb())));
axMap1.set_ShapeLineColor(inthandler4, i, c);
axMap1.set_ShapeLineWidth(inthandler4, i, 1);
}
Re: Problem with the set_ShapeLineColor
Posted by:
pmeems ()
Date: May 14, 2012 01:40AM
These methods are deprecated:
[www.mapwindow.org]
You should use ShapeDrawingOptions.LineColor instead.
--
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
[www.mapwindow.org]
You should use ShapeDrawingOptions.LineColor instead.
--
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
Sorry, only registered users may post in this forum.


