Jump to content
Software FX Community

ChartFx chart Transparency?


User (Legacy)

Recommended Posts

I have a chart within my custom control.  Most controls have a SetStyle

property so that you can apply the following to support transparency when

the control (in this case, a chart) is hosted on another control (such as a

panel).

this.SetStyle(ControlStyles.SupportsTransparentBackColor, true);

How can I do this for a chart so that I don't have the gray background?

Setting the BackColor to Color.Transparent doesn't work because of the

SupportsTransparentBackColor property is not in place, but no SetStyle is

exposed for me to do this.

Thanks for any reply,

tim

Link to comment
Share on other sites

No. Chart FX doesn't not support this transparency settings, mainly because

it contains other controls inside and the implementation of transparency in

.NET doesn't work well in this scenario.

Unlike ActiveX controls, .NET controls can not be "WindowsLess" and

therefore not truly transparent. What .NET does for transparency is

basically draws the parent inside the child graphics and then it draws the

client. We found it impossible to make this work well with multiple levels

of controls, we don't know if there is some kind of bug in GDI+ or is it

just not supported. We couldn't find documentation stating either option.

--

FP

Software FX Support

"Tim Burnham" <timothy.burnham@compuware.com> wrote in message

news:f$xNY5tpCHA.2684@webserver1.softwarefx.com...

> I have a chart within my custom control. Most controls have a SetStyle

> property so that you can apply the following to support transparency when

> the control (in this case, a chart) is hosted on another control (such as

a

> panel).

> this.SetStyle(ControlStyles.SupportsTransparentBackColor, true);

>

> How can I do this for a chart so that I don't have the gray background?

> Setting the BackColor to Color.Transparent doesn't work because of the

> SupportsTransparentBackColor property is not in place, but no SetStyle is

> exposed for me to do this.

>

> Thanks for any reply,

>

> tim

>

>

>

>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...