TPanel.ParentColor works wrong when its "grandparent" is TNotebook and XP theming is used
Original Reporter info from Mantis: Vladimir
-
Reporter name: Vladimir Zhirov
Original Reporter info from Mantis: Vladimir
- Reporter name: Vladimir Zhirov
Description:
Imagine the following hierarchy of container components:
Form1: TForm1
Notebook1: TNotebook
Page1: TPage
Panel1: TPanel (ParentColor = False; Color = clBtnFace)
Panel2: TPanel (ParentColor = True)
In this case I would expect Panel2 to have the same color as its parent (Panel1), but in fact Panel1 inherits the gradient filling from TNotebook page.
The issue is present when using XP Themes only. If I disable .manifest file in project options, everything looks as expected.
Additional information:
Attached is the demo project to reproduce the issue. clBtnFace color was replaced with clTeal to make the difference more visible. The screenshot is attached too.
Mantis conversion info:
- Mantis ID: 14278
- Version: 0.9.27 (SVN)
- Fixed in version: 0.9.29 (SVN)
- Target version: 1.0.0
- LazTarget: 1.0