I am using VCL Styles and have an Advpanelgroup on the main form. I don't want the panels on the panelgroup to be styled so I tried setting the StyleElements of each panel to []. However, this seems to have no effect. To see the issue, place a panelgroup on a form and add the following to the form's oncreate:
with AdvPanelGroup1.AddPanel do
begin
StyleElements := [];//This has no effect
Color := clYellow;
end;
When run without VCL styles, the panel is Yellow, as expected. However, when Luna style is enabled. the panel is blue. Shouldn't styleelements control this? I have an application that relies on using VCL styles and being able to have custom panel colors. The application worked properly up until a recent update to the TMS Component pack when it appears that support for styles was added to TAdvPanels (and apparently AdvPanelGroups).
Current VCL styles implementation doesn't take StyleElements control in account. We have added support for it and the next version will support it.
The update fixed the problem with the color property but Caption.color is still controlled by the VCL style even when styleelemnts := []. To reproduce, add the following to my example that started this thread:
Caption.Color := green;
Result: when styles are not used, the caption is green. When styles are used, the caption color is gray even when styleelements := []
Thank you
We fixed this.
The caption color property is not fixed in the 3/4 update (component pack 8.1.3.1). The overall color property works, but not caption.color. Will the fix for caption.color be in the next release?
Yes