MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




c++ - setting the color of a line

This is a discussion on c++ - setting the color of a line within the Development forums, part of the MapPoint 2006/2009 Discussion category; I cannot set the color of a line that I draw (programmatically in c++). What I have tried so far ...


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

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



Click here to register

Reply

 

LinkBack (1) Thread Tools Display Modes
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 05-12-2008
Junior Member
White Belt
 
Join Date: Nov 2007
Posts: 5
c++ - setting the color of a line

I cannot set the color of a line that I draw (programmatically in c++). What I have tried so far is using code of the following form;

[pointer to my shape object]->Fill->ForeColor = color

For the color value I have tried pretty much everything I can think of and also anything that I could find on the web that seemed like it might work. I have not had any luck though. Anybody have experience setting a line's color this?
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 05-13-2008
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,177
Re: c++ - setting the color of a line

Hi,

It is the Line property not the Fill property to set the color:

Code:
[pointer to my shape object]->Line->ForeColor = 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
  #3 (permalink)  
Old 05-13-2008
Junior Member
White Belt
 
Join Date: Nov 2007
Posts: 5
Re: c++ - setting the color of a line

I have changed my code and it works now. 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
Reply

Tags
color, line, setting


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/c-setting-color-line-7677.html

Posted By For Type Date
Formatting Coordinates with DmsFormat - MapPoint Articles - MP2K Magazine This thread Refback 05-14-2008 09:28 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
Setting Shape Color Kevin_Williams MapPoint 2006/2009 Discussion 1 02-28-2007 11:54 AM
Display setting for Map alwasl8 MapPoint 2006/2009 Discussion 1 10-07-2005 09:37 PM
How to change line thickness and color Anonymous MapPoint 2006/2009 Discussion 9 12-12-2003 10:02 AM
How can I create a line between two line with VB6 Anonymous MapPoint 2006/2009 Discussion 0 04-29-2003 05:44 PM
As I draw a line and then a pushpin on that line, .... Anonymous MapPoint 2006/2009 Discussion 1 07-16-2002 08:35 AM


All times are GMT -5. The time now is 07:47 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC2
MP2K Magazine
Visitor Map

Antalya Holiday
Check out the Antalya holiday options through UlookUbook and find amazing offers that suit your pocket...

Restaurant reviews
Qype makes it easy for you to find restaurant reviews. Click here to find out more



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