Delphi buttons - different appearance during development and runtime

Has anyone had this problem? During development, the appearance of the button is normal. However, at runtime, this happens with the appearance of the Windows 98 button.

Runtime picture

Development Time Image

OS - Windows 7 64bit Delphi 10.1 Berlin

+7
button delphi delphi-10.1-berlin
source share
1 answer

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

Typically, the manifest settings will be ordered in the settings. Look at the app. You should see that the manifest file is set to "Auto Generate" and the checkmark "Enable Runtime Element". This is an IDE project parameter that gives you comctl32 v6.

There are other ways to specify comctl32 v6 in your manifest. For example, you can provide a custom manifest. If so, then you will need to understand what is happening with your manifest.

+12
source share

All Articles