Closed cbeier-studio closed 1 year ago
Hi. I understand. I will try to fix it
Hi sorry I can't fix it. I'm not sure who added that code but only works in trunk apparently... I have only current release. The code is grayed on my editor.
@maxm74 @circular17 maybe one of the two has an idea about it? I'm lost.
Hi!
I am not sure what happens or what "form is reopened" means. Is it that when the form is created, it has the wanted behavior and when it is hidden and shown again, this changes? I suppose that ParentBackground = False
means that the component is opaque and so the background color is from the Color
property. One way could be to set this color to be the wanted one.
Regards
Hi. Thanks for your response.
About setting the color. We should publish the Color property?
Hi, I've added Color property. That solves the issue.
Hi, thank you for the answers!
Hi, I've added Color property. That solves the issue.
Nice! It solves my issue. Thanks!
When reopening a form that has TBCPanel, it always sets its ParentBackground to False. It is not an issue most of the time.
But when the TBCPanel is a child of another TBCPanel, BorderBCStyle is bpsBorder, and Rounding is used (RoundX, RoundY greater than 1), then it gets the background color of the parent TBCPanel's parent and paints it in the corners. Setting the ParentBackground to True, solves the issue. But when the form is reopened it sets back to False, and it gets a bit annoying when using various TBCPanel in various forms.
I am using Lazarus 3.0RC1, FPC 3.2.2 on Windows 11. BGRAControls package version is 7.7.