How can I determine the background color of a TTabSheet when running on a OS with themes like XP and above?
+4
A:
I would try GetThemeColor.
Edit: But note that tab sheets have a gradient under standard XP theming, so a single color probably is not what you need.
Ulrich Gerhardt
2010-02-03 11:05:47
Thanks, although it is not what I want to hear. I placed a TForm on this tabsheet and would change the color of it to the color of tabsheet. After your answer, I think it is easier to make the form transparent.
Heinz Z.
2010-02-03 11:27:43
And when I use TFrame instead of TForm it works like I wish (after a first look).
Heinz Z.
2010-02-03 11:39:16
Frames have their problems, but I think they are just better suited as "subforms" than TForms are. (Probably because that's their reason of being. :-))
Ulrich Gerhardt
2010-02-03 12:03:11