This project is read-only.

color of a shape (line and point)

Sep 6, 2011 at 4:10 PM
Edited Sep 7, 2011 at 1:04 PM
Previously I have already posted a message on this, but ultimately the problem is not resolved.
http://mapwingis.codeplex.com/discussions/266862 

Let me explain, the following code works well for polygons but does not work for points and lines.

I adapted the code for lines and points (FillColor -> linecolor, etc ...) but does not work
Sep 7, 2011 at 1:48 PM
Edited Sep 7, 2011 at 1:52 PM

For short :

It's work ->

'Polygon
sfPoly.Categories.Item(0).DrawingOptions.FillColor = RGB(0, 255, 255)
'etc...

Does not work ->

'Line
sfLine.Categories.Item(0).DrawingOptions.LineColor = RGB(0, 255, 255)
'etc...

'Point
sfPoint.Categories.Item(0).DrawingOptions.PointColor = RGB(0, 255, 255) 'etc...
Sep 8, 2011 at 10:37 AM

The aim is to highlight a selection, I found another solution:

myShapeFile.ShapeSelected (shpIndex) = true
myShape.SelectionColor = RGB (R, G, B)

It remains a problem, this method works but neglects the width of the lines, I have to keep the default value for the width of the lines. A solution?