Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I change the background color of my TTabSheets?

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?

like image 461
Ben313 Avatar asked May 05 '11 21:05

Ben313


1 Answers

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

like image 134
Johan Avatar answered Oct 07 '22 10:10

Johan