Recent

Author Topic: Transparency of rounded corners of TBCPanel  (Read 1023 times)

kirchfritz

  • New Member
  • *
  • Posts: 26
  • WIN10 LAZ 2.02 FPC 3.2.0
Transparency of rounded corners of TBCPanel
« 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

circular

  • Hero Member
  • *****
  • Posts: 3341
    • Personal webpage
Re: Transparency of rounded corners of TBCPanel
« Reply #1 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.
Conscience is the debugger of the mind

garlar27

  • Hero Member
  • *****
  • Posts: 640
Re: Transparency of rounded corners of TBCPanel
« Reply #2 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.

lainz

  • Hero Member
  • *****
  • Posts: 3593
    • Lainz
Re: Transparency of rounded corners of TBCPanel
« Reply #3 on: April 19, 2019, 04:18:22 am »
Not possible :(
https://lainz.github.io - My Website
https://lazpaint.github.io/ - LazPaint Downloads

440bx

  • Hero Member
  • *****
  • Posts: 1888
Re: Transparency of rounded corners of TBCPanel
« Reply #4 on: April 19, 2019, 05:49:41 am »
Not possible :(
Just a question, is a TBCPanel a window ?
FPC v3.0.4 and Lazarus 1.8.2 on Windows 7 64bit.

lainz

  • Hero Member
  • *****
  • Posts: 3593
    • Lainz
Re: Transparency of rounded corners of TBCPanel
« Reply #5 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.
https://lainz.github.io - My Website
https://lazpaint.github.io/ - LazPaint Downloads

440bx

  • Hero Member
  • *****
  • Posts: 1888
Re: Transparency of rounded corners of TBCPanel
« Reply #6 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.
FPC v3.0.4 and Lazarus 1.8.2 on Windows 7 64bit.

circular

  • Hero Member
  • *****
  • Posts: 3341
    • Personal webpage
Re: Transparency of rounded corners of TBCPanel
« Reply #7 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.
Conscience is the debugger of the mind

 

TinyPortal © 2005-2018