MSChart Control: Changing Background color?

alt_255
12-11-2004, 11:42 PM
Evening all,

What is the property to set the background color for the MSChart control?

I've tried Chart.Plot.Backdrop.Fill.Brush.Fillcolor.Set 0,0,0

but to no avail
:confused:

Gruff
12-12-2004, 01:34 AM
With MSChart1.Plot.Backdrop.Fill
.Style = VtFillStyleBrush <--- You need this
.Brush.Style = VtBrushStyleSolid <--- And this
.Brush.FillColor.Set 255, 200, 200 <--- Then your color values.
End With

P.S. 0,0,0 = black.

alt_255
12-12-2004, 02:05 AM
Thanks.... oops I wasn't thinking about the 0,0,0.... :chuckle:

Gruff
12-12-2004, 02:10 AM
No Biggie. There is also a border color to consider. You'll see when you change the backdrop color. :)

~T

alt_255
12-12-2004, 02:17 AM
I see it! Thanks for all the help.

What is the property for the border colour?? I've looked and cant find it... :confused: I think I need a rest

alt_255
12-12-2004, 03:55 PM
Don't worry, I've got it now!! :D I just used

Chart.Plot.LocationRect.Min
and
Chart.Plot.LocationRect.Max
to set the size of the plot to the size of the control.

THanks again Gruff for all your help

Gruff
12-12-2004, 04:02 PM
Glad to hear it Alt.

For future reference I just clicked on the 'Custom' property tag of the MSChart control and flipped through the tabs for setting Color, Patterns,Fill, Etc... until I saw that several things needed to be set before we saw a color change. Noted the names then went to the code window and ran down the MSChart object tree in code. You know Press Dot, see sub object property list. Select. Press Dot, Etc...

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum