Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 339
Adalberto José Brasaca Avatar asked Oct 10 '16 13:10

Adalberto José Brasaca


1 Answers

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.

like image 128
David Heffernan Avatar answered Nov 10 '22 08:11

David Heffernan