Question

Using Delphi 7, how can I check if Windows has a theme enabled (i.e. is it the classic gray windows look or not)?

Was it helpful?

Solution

You can use the unit UxTheme.pas and call the IsThemeActive function.

Delphi 7 was the first version that shipped with it but it should be possible to use that unit in older versions aswell as it is open source (written by Mike Lischke originally) that just uses WinAPI.

OTHER TIPS

You've to use uxtheme.dll. I use this code in Delphi 5 and it works for me.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top