MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




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 2006/2009 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 ...


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 Thread Tools Display Modes
  #1 (permalink)  
Old 12-21-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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
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 12-21-2004
John Meyer's Avatar
Senior Member
Blue Belt
 
Join Date: Jul 2002
Posts: 479
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
__________________
John
http://www.support-pc.com

Order MapPoint 2006 Here
https://secure.mp2kmag.com/?refer=support-PC
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 12-22-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 12-22-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
(And I did not specify I needed it in C#... sorry)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 12-22-2004
John Meyer's Avatar
Senior Member
Blue Belt
 
Join Date: Jul 2002
Posts: 479
I new you could convert it 8)
__________________
John
http://www.support-pc.com

Order MapPoint 2006 Here
https://secure.mp2kmag.com/?refer=support-PC
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
>, change, line, loc2, shapeaddlineloc1, size


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
How to change default map size? mpguy MapPoint 2006/2009 Discussion 1 08-13-2005 02:45 AM
How to change the size of the sized circles Anonymous MapPoint 2006/2009 Discussion 0 11-10-2004 04:54 AM
Don't want radius shape to increase it's size when I zoom In Anonymous MapPoint 2006/2009 Discussion 1 06-07-2004 05:58 PM
How can I change charts size? julior MapPoint 2006/2009 Discussion 0 03-12-2004 05:22 AM
PLEASE HELP: Change font and size of the chart Anonymous MapPoint 2006/2009 Discussion 0 04-07-2003 05:55 AM


All times are GMT -5. The time now is 07:04 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