How can I change the background color of my TTabSheets?

Ben313 picture Ben313 · May 5, 2011 · Viewed 28.2k times · Source

Im Designing a Form with Delphi 2009, and Im trying to figure out the TPageControl element. Im trying to make separate dialogs for each tab. I can make the TTabSheets, and I can place my elements on the TabSheets, but my problem is that they are barley visible, as the default background for a TTabSheet appears to be white. Ive tried to place a panel on the TabSheet, but for whatever reason, the panel always appears behind the TabSheet. So my question: Is there any way to change the color of a tab sheet to the standard windows beige, or is their a way to place a TPanel on the tab page, accomplishing the same goal?

Answer

Johan picture Johan · May 6, 2011

Set the style property to tsFlatButtons
The background ~colour~ will revert to beautiful clBtnFace