Recent

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

kirchfritz

  • New member
  • *
  • Posts: 21
  • WIN7 LAZ 1.7 FPC 3.1.1
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: 2856
    • 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: 593
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: 3082
    • https://lainz.github.io/
Re: Transparency of rounded corners of TBCPanel
« Reply #3 on: April 19, 2019, 04:18:22 am »
Not possible :(

440bx

  • Hero Member
  • *****
  • Posts: 793
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 ?
using FPC v3.0.4 and Lazarus 1.8.2 on Windows 7 64bit.

Lainz

  • Hero Member
  • *****
  • Posts: 3082
    • https://lainz.github.io/
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.

440bx

  • Hero Member
  • *****
  • Posts: 793
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.
using FPC v3.0.4 and Lazarus 1.8.2 on Windows 7 64bit.

circular

  • Hero Member
  • *****
  • Posts: 2856
    • 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