Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
315
Setting chart area background to transparent
posted

9.1 version.

I've got a WinChart object that I've placed on an UltraPanel. The panel has a gradient from white to gainsboro. I would like the WinChart to blend in, so I set its BackColor to transparent as I did with the other controls on the form. However, it appears white, not transparent. If I set it to any other color, the background ends up that color. Is transparent not supported by this control?

Parents
No Data
Reply
  • 28496
    Suggested Answer
    Offline posted

    transparency support is very limited in the UltraChart as it is with most Windows Forms controls.  in general, a background gradient or image on a form or panel will not be seen behind foreground controls, even if they do have their background set to Transparent.  some controls, like the Label, implement this as a special case.  unfortunately, the UltraChart control does not.

    it might be possible to support this appearance using the control's Paint event or perhaps the FillSceneGraph event, but some custom application code is needed to measure where the gradient or background image should be drawn.

Children
No Data