Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 2 of 2

Setting Shape Color

This is a discussion on Setting Shape Color within the MapPoint Desktop 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 = ...

  1. #1
    Kevin_Williams is offline 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.

  2. #2
    Paul Larson is offline Senior Member Green Belt
    Join Date
    Sep 2005
    Location
    Battle Creek, Michigan
    Posts
    136

    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Has anyone had any problems setting the value of t....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 10-26-2006, 08:43 AM
  2. Display setting for Map
    By alwasl8 in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 10-07-2005, 10:37 PM
  3. Does an object reside in my Shape or Shape boundaries?
    By hotrdd in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 08-04-2005, 10:51 PM
  4. setting addresses in canada,
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 10-22-2003, 08:27 PM
  5. Setting Speeds
    By aarunprakash in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 06-06-2003, 01:45 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


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