Lazarus

Programming => Graphics => Graphics and Multimedia => BGRABitmap and LazPaint => Topic started by: kirchfritz on April 17, 2019, 10:25:59 am

Title: Transparency of rounded corners of TBCPanel
Post by: kirchfritz on April 17, 2019, 10:25:59 am
when I put a TBCPanel on a TBCPanel, then the rounded corners of the inner TBCPanel show the color of the form. I expect to see the backgroundcolor of the parent TBCPanel, not the forms color.

Is this a bug or a feature? Please see my attached screenshot.

Fritz
Title: Re: Transparency of rounded corners of TBCPanel
Post by: circular on April 18, 2019, 07:01:41 pm
TBCPanel is not a transparent component. So it overwrites the whole rectangle. So in a way this is to be expected.

Though I wonder if there is a background color that could be used.
Title: Re: Transparency of rounded corners of TBCPanel
Post by: garlar27 on April 18, 2019, 08:45:53 pm
I don't think a background color would be acceptable for the case of BCPanel1 and BCPanel2.
Title: Re: Transparency of rounded corners of TBCPanel
Post by: lainz on April 19, 2019, 04:18:22 am
Not possible :(
Title: Re: Transparency of rounded corners of TBCPanel
Post by: 440bx on April 19, 2019, 05:49:41 am
Not possible :(
Just a question, is a TBCPanel a window ?
Title: Re: Transparency of rounded corners of TBCPanel
Post by: lainz on April 19, 2019, 08:09:14 pm
Not possible :(
Just a question, is a TBCPanel a window ?

Is like a TPanel. "TCustomControl", not "TGraphicControl" that can have transparency.
Title: Re: Transparency of rounded corners of TBCPanel
Post by: 440bx on April 19, 2019, 08:52:46 pm
Is like a TPanel. "TCustomControl", not "TGraphicControl" that can have transparency.
Excuse my ignorance about components.  The reason I asked if it's a window is because, if it is, then setting its window region to be equal to the rounded shape might provide the transparency he desires.
Title: Re: Transparency of rounded corners of TBCPanel
Post by: circular on April 21, 2019, 05:22:16 pm
I don't think a background color would be acceptable for the case of BCPanel1 and BCPanel2.
Indeed. Though it would work for BCPanel3 and BCPanel4 which would be better than nothing.
TinyPortal © 2005-2018