Adalberto J. Brasaca
Adalberto J. Brasaca

Reputation: 539

Delphi buttons - Different appearance in design time and runtime

Has anyone had this problem ? In design time the button's appearance is normal. However, at runtime it is with the appearance of Windows 98 button.

Runtime picture

Design time picture

OS - Windows 7 64bit Delphi 10.1 Berlin

Upvotes: 7

Views: 1053

Answers (1)

David Heffernan
David Heffernan

Reputation: 613053

This happens when your application does not specify comtl32 v6 in the application manifest.

Typically that manifest setting would be arranged in your project settings. Look under Application. You should see that Manifest File is set to Auto Generate, and that the Enable Runtime Themes item is checked. That is the IDE project setting that gives you comctl32 v6.

There are other ways to specify comctl32 v6 in your manifest. You might be supplying a custom manifest, for instance. If that is the case then you'll need to dig into what is going wrong with your manifest.

Upvotes: 12

Related Questions