MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Setting Shape Color

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 = ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack (3) Thread Tools Display Modes
  3 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 02-21-2007
Junior Member
Yellow Belt
 
Join Date: Nov 2006
Posts: 20
Setting Shape Color

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 = 0xFF00FF;
I also know how to set the shape forecolor after the user draws the new shape.
Code:
private void axMappointControl_SelectionChange(___)
{
   MapPoint.Shape shape = axMappointControl.ActiveMap.Selection;
   if (shape != null)
   {
      shape.Line.ForeColor = 0xFF00FF;
   }
}
But I was wondering if there was a way to (programmatically) set the forecolor. So while the user draws new shapes, the forecolor is the appropriate color.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2007
Senior Member
Green Belt
 
Join Date: Sep 2005
Location: Marshall, Michigan
Posts: 126
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
color, setting, shape


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/setting-shape-color-5696.html

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -5. The time now is 06:54 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55