No images in TListview header when using VCL Styles

When using TListview in vsReport ViewStyle, when activating any VCL styles, images in the header are not displayed. Casting aside the classic Windows style, images appear. (The way to display the images I'm using is to assign a TImageList to the SmallImages ListView property, and then select the image index in the Columns property for the corresponding column). How to show images in TListView header with VCL styles enabled?

+4
source share
1 answer

I added a new vcl style hook ( TListViewStyleHookFix ) for the TListView component in the Vcl Styles Utils project to fix this problem.

You can use this Stylehook by adding a Vcl.Styles.Fixes block so that you use the sentence and then register the hook this way.

TStyleManager.Engine.RegisterStyleHook(TListView, TListViewStyleHookFix); 

enter image description here

More information about this fix can be found in this blog post .

+6
source

Source: https://habr.com/ru/post/1435232/


All Articles