I created the manifest file for my Delphi 6 application so it can display controls according to the theme defined by Windows (controls 6.0). Everything looks fine, except TBitBtn
component, which is displayed using the legacy theme:
The behavior is the same on Windows XP and Windows 7, regardless of the current theme, even when no image is assigned to the TBitBtn
component.
Now, when I put a regular TButton
component on a form, it displays OK. If I then programmatically set an image to this button in runtime (using SendMessage(Handle, BM_SETIMAGE, IMAGE_ICON, LPARAM(Icon))
), it immediately reverts its style to the legacy one.
Is there a way to either make TBitBtn
use a proper style, or to display glyph on a regular TButton
without reverting to the legacy one in Delphi 6?