views:

87

answers:

1

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
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.
And when I use TFrame instead of TForm it works like I wish (after a first look).
Heinz Z.
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