John Barrat
John Barrat

Reputation: 840

How to determine the colors in a Custom style so I can apply them to a Custom Title Bar

I am using a Custom Title bar (TTitleBar) primarily to place the Main Menu and a couple of drop downs onto the title bar. This works without applying styles to my app but not when I apply Styles.

How can I discover the colors defines in a custom style so I can apply them to my CustomTitleBar.

I'm using Delphi 11.1

Upvotes: 1

Views: 210

Answers (1)

John Barrat
John Barrat

Reputation: 840

TStyleManager.ActiveStyle.GetSystemColor(clActiveCaption) does the trick.

Upvotes: 2

Related Questions