Reputation: 3503
Is it possible to hook into a TImageList or make a descendant, to catch when an image is requested from it so I can manually load it each time? (specifically when ListView requests the images)
Upvotes: 1
Views: 237
Reputation: 54802
No. Both are native controls and images in list view controls is not a VCL feature but an API feature.
When you set images of a TListView
, what VCL does is to call ListView_SetImageList
with the image list's handle. Consequently, when the list view control requests an image, it will be from the native control. No VCL code will run.
Upvotes: 4