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 5 of 5

Shape.addLine(loc1, loc2) -> How 2 Change size of line ??

This is a discussion on Shape.addLine(loc1, loc2) -> How 2 Change size of line ?? within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi all... I find the lines too wide and would like to make them thin... Here's my very little portion ...

  1. #1
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    Shape.addLine(loc1, loc2) -> How 2 Change size of line ??

    Hi all...

    I find the lines too wide and would like to make them thin...

    Here's my very little portion of code :

    if(i>0)
    mpmap.Shapes.AddLine(mploc[i-1], mploc[i]);



    thanks

  2. #2
    John Meyer's Avatar
    John Meyer is offline Senior Member Blue Belt
    Join Date
    Jul 2002
    Posts
    478
    Hope this sample helps you.

    Code:
    Dim objmap As MapPointCtl.Map
    Set objmap = MappointControl1.ActiveMap
    Dim ashape As MapPointCtl.Shape
    Dim aLocation1 As MapPointCtl.Location
    Dim aLocation2 As MapPointCtl.Location
    
    Set aLocation1 = objmap.FindResults("New York, NY").Item(1)
    Set aLocation2 = objmap.FindResults("Atlanta, GA").Item(1)
    Set ashape = objmap.Shapes.AddLine(aLocation1, aLocation2)
    ashape.Line.Weight = 1

  3. #3
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    Thank you for the reply but I needed it in C#

    I've found how to do it :



    sh = mpmap.Shapes.AddLine(mploc[i-1], mploc[i]);
    sh.Line.Weight= 1;



    Hope this will help

    See you

  4. #4
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    (And I did not specify I needed it in C#... sorry)

  5. #5
    John Meyer's Avatar
    John Meyer is offline Senior Member Blue Belt
    Join Date
    Jul 2002
    Posts
    478

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to change default map size?
    By mpguy in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 08-13-2005, 02:45 AM
  2. How to change the size of the sized circles
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 11-10-2004, 04:54 AM
  3. Don't want radius shape to increase it's size when I zoom In
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 06-07-2004, 05:58 PM
  4. How can I change charts size?
    By julior in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 03-12-2004, 05:22 AM
  5. PLEASE HELP: Change font and size of the chart
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 04-07-2003, 05:55 AM

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 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 56 57 58 59 60 61 62 63 64 65 66