Change background color of MarkText?

TeeChart for ActiveX, COM and ASP
Post Reply
Kaprice
Newbie
Newbie
Posts: 11
Joined: Wed Aug 14, 2013 12:00 am

Change background color of MarkText?

Post by Kaprice » Sat Aug 17, 2013 6:43 pm

How can I change the background color of the MarkText box? The only way I've found, so far, is to use Gradient, but I want a solid color. I suppose I could probably set all the parts of the gradient to the same color, but it seems there should be a way to just set the background color.

How can I do that?

Kaprice
Newbie
Newbie
Posts: 11
Joined: Wed Aug 14, 2013 12:00 am

Re: Change background color of MarkText?

Post by Kaprice » Sat Aug 17, 2013 6:57 pm

I found how to do it via Settings in Edit Chart:

Select Series
Marks
Format
Color

Note: Gradient settings appear to override Format Color.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Change background color of MarkText?

Post by Sandra » Mon Aug 19, 2013 11:03 am

Hello kaprice,

If you want change by code the color of MarkText background you only need do something as next lines of code
To a concrete mark:

Code: Select all

   TChart1.Series(SeriesIndex).Marks.Item(ValueIndex).Color = vbRed 
To all marks:

Code: Select all

 TChart1.Series(0).Marks.Color = vbRed
Could you confirm us if previous suggestions work in your end?
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply