MapPoint Forums

MapForums

Community of VE/MapPoint 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

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  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,017
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


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 11:45 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5
MP2K Magazine
Visitor Map

Ski Holidays Andorra
Ski holidays in Andorra offer value for money right across the board. Clothes, meals and accommodation are great value with duty free prices. Book great value ski holidays today.

Travel Agent
Travel Counsellors was voted UK's Best Travel Agent at the Guardian Unlimited travel awards.

Cheap Flight Canada
Making a cheap flight to Canada can become a reality when you book online with dealchecker.co.uk. Our simple search allows you to see for yourself who is the cheapest.

Holidays to Sri Lanka
Holidays to Sri Lanka are enriched by the glittering tapestry of culture and breath taking mountain views. Book a holiday there today!

Cheap Canaries Holidays
Are you hunting down cheap Canaries holidays? Well check out ulookubook.com to bag a great value holiday. There are numerous festivals taking place all year round. Why not book your holiday around one?

Family activity holidays
Family holidays can be full of fun activity. Check out your options at Travel.co.uk

Cheap Holidays in Portugal
Don't spend your hard earned money on travelling agents! Come to On The Beach, and see information on cheap holidays in Portugal.


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