Community of VE/MapPoint Users and Developers
This is a discussion on How to change line thickness and color within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Eric, How do you change line thickness and color when you call Addshape to draw different line thickness, color of ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
|
Here is code from an addin where a shape has been selected before the addin is called: Code: Set objShape = objMap.Selection
objShape.Line.ForeColor = vbRed sthurlock |
| |||
|
This is my code: Dim objmap As MapPointCtl.Map Dim objloc As MapPointCtl.Location Dim objshape As MapPointCtl.Shape Set objmap = Me.MappointControl1.ActiveMap Set objloc = objmap.GetLocation(wp0.lat, wp0.lon) Set objshape = objmap.Selection objshape.line.ForeColor = color objshape.line.Weight = 1 objmap.Shapes.AddShape geoShapeRadius, objloc, 0.001, 0.001 |
| |||
|
I need to change the color and thickness of the line that I just added to the map. How can I do it? The following code does not work because nothing has been selected. Thanks. 'Add a Line from one location to the other objmap.Shapes.AddLine objloc0, objloc1 Set objshape = objmap.Selection objshape.line.ForeColor = color objshape.line.Weight = 1 |
| |||
|
Sorry I wasn't more clear. The code I gave before was from an addin that was called after the user had created and then selected a shape. In your code, you don't need to select it, you just need to grab the reference to the Shape object that is returned when you do the addline, then change the properties: Code: Set objshape = objmap.Shapes.AddLine objloc0, objloc1 objshape.line.ForeColor = color objshape.line.Weight = 1 |
![]() |
| ||||
| Posted By | For | Type | Date | |
| Need Jewelry Retailer Info? | This thread | Refback | 03-27-2007 07:13 AM | |
| Computer Game Cheats | This thread | Refback | 03-26-2007 11:30 AM | |
| Find Latest Tamil Songs Mp3 Here. | This thread | Refback | 03-25-2007 08:09 PM | |
| Car Insurance Providers Information. | This thread | Refback | 03-24-2007 09:48 PM | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Change color of arrow | Shragel | MapPoint 2006/2009 Discussion | 3 | 07-12-2006 07:28 PM |
| Change Background Color of Map | wadams | MapPoint 2006/2009 Discussion | 3 | 06-05-2006 09:34 AM |
| Mappoint 2004 Line thickness problem ? | Danny | MapPoint 2006/2009 Discussion | 1 | 05-30-2005 12:27 PM |
| Change color of Text Balloon | Anonymous | MapPoint 2006/2009 Discussion | 2 | 05-17-2004 07:26 AM |
| Can I change the color of the over-all map? We wa.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 08-29-2000 12:56 PM |
Stansted Flights
Stansted flights are great value when you book with Holiday Hypermarket. You can find plenty of information about destinations and even UK airports online at Holiday Hypermarket.
Flights to Greece
Find cheap flights to Greece on Travel Counsellors. A personal Travel Counsellor can help you plan flights and find accommodation in Greece.
Flight
When looking to jet set off, make sure you check out dealchecker.co.uk before you check in anywhere else. Bag a bargain flight from all major scheduled and charter airlines.
Sri Lanka Holidays
There are some outstanding deals on Sri Lanka holidays at theholidayplace.co.uk. Sri Lanka is renowned for it's exceptional beauty! Book a holiday today!
Balearics
Before booking to the Balearics Islands make sure you check out our travel guide online. The Balearics are renowned for their vibrant nightlife but there are also some stunning Gothic cathedrals, Stone Age ruins and fishing villages.
Price Comparisons
Search and compare millions of holidays, flights and hotels etc. At Travel.co.uk, price comparisons are easy.
Holidays in Fuerteventura
Need a break? Go to the Canary Islands! Find information on holidays in Fuerteventura at On The Beach.