Community of VE/MapPoint Users and Developers
This is a discussion on Setting Shape Color within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I know how to set the shape forecolor if I'm programmatically creating them. Code: MapPoint.Shape blah = axMappointControl.ActiveMap.Add[Shape]([Parameters]); blah.Line.ForeColor = ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Setting Shape Color Code: MapPoint.Shape blah = axMappointControl.ActiveMap.Add[Shape]([Parameters]); blah.Line.ForeColor = 0xFF00FF; Code: private void axMappointControl_SelectionChange(___)
{
MapPoint.Shape shape = axMappointControl.ActiveMap.Selection;
if (shape != null)
{
shape.Line.ForeColor = 0xFF00FF;
}
}
|
| |||
| Re: Setting Shape Color
You could check the ActiveMap.Selection property in the AfterRedraw() event. If it is a shape, then set the forecolor property. |
![]() |
| Tags |
| color, setting, shape |
| ||||
| Posted By | For | Type | Date | |
| MapPoint For Dummies - MP2K Magazine | This thread | Refback | 03-01-2007 04:28 AM | |
| The Magazine for MapPoint - MP2K Magazine | This thread | Refback | 02-26-2007 03:20 PM | |
| Map Visitors - Powered by Virtual Earth | This thread | Refback | 02-22-2007 12:44 AM | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Has anyone had any problems setting the value of t.... | Anonymous | MapPoint 2006/2009 Discussion | 2 | 10-26-2006 08:43 AM |
| Display setting for Map | alwasl8 | MapPoint 2006/2009 Discussion | 1 | 10-07-2005 10:37 PM |
| Does an object reside in my Shape or Shape boundaries? | hotrdd | MapPoint 2006/2009 Discussion | 1 | 08-04-2005 10:51 PM |
| setting addresses in canada, | Anonymous | MapPoint 2006/2009 Discussion | 0 | 10-22-2003 08:27 PM |
| Setting Speeds | aarunprakash | MapPoint 2006/2009 Discussion | 0 | 06-06-2003 01:45 PM |