Jump to content
Software FX Community

ChartFx chart Transparency?


User (Legacy)
 Share

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...