In a legacy application (created in Delphi 6 under WinXP in 32-bit, recently ported to Delphi XE2 under Win7 in 64-bit) at design time, the standard controls look "modern", with color gradients etc. In run-time though, they look just like an old Win95 version.
That would not bother me much if, in particular, the default colors in TPageControl and TTabControl wouldn't make it really difficult to tell which tab is currently selected.
So my questions are:
- What could make the theme not active at run time?
- Is it possible to easily (e.g. through IDE configuration) make the design time look like the run time?
Note:
- In the project options, I enabled runtime themes for each existing target. It didn't help.
- I also tried to enable GlassFrame in the forms containing those controls. Unfortunately, the runtime look and feel stayed unthemed.
- This application is built on a lot of in-house and external code that I don't master (just a dwarf standing on shoulders of giants), but whose source are available to me. Suspecting that some instruction would disable themes at application startup, I looked for some keywords like "Theme", "Skin", "TStyleManager", "SetWindowTheme" hoping to solve this by myself. I could not find anything significant (to me, at least).
- I tried to skin a small application as a test, using infos from Question Delphi XE2 VCL styles tutorial - how to change the style at runtime, and it worked perfectly.
- Skinning my application is not my goal. I just would like to be able to visually tune some GUI elements at design time, and it is easier if design and run time look alike.