zjg076000 0 Posted July 13, 2022 After the imagecollection can add pictures, but virtualimagelist1 cannot be loaded dynamically, but when it is added manually, the bound pictures can be displayed, and the dynamic loading cannot be displayed, procedure TForm2.Button1Click(Sender: TObject); begin ImageCollection2.Add('1','D:\pict\1.png'); ImageCollection2.Add('2','D:\pict\2.png'); ImageCollection2.Add('3','D:\pict\2.png'); VirtualImageList1.ImageCollection:=ImageCollection1; VirtualImageList1.UpdateImageList; end; Share this post Link to post
Lajos Juhász 293 Posted July 13, 2022 Check out the AutoFill property of the VirtualImageList. It should be true in order to load all the images from the image collection. Share this post Link to post
zjg076000 0 Posted July 16, 2022 On 2022/7/13 at PM11点58分, Lajos Juhász said: 查看 VirtualImageList 的 AutoFill 属性。为了从图像集合中加载所有图像,它应该是正确的。 VirtualImageList .autofill:=true , because when it is added manually, the bound pictures can be displayed ,After the imagecollection can add pictures, but virtualimagelist1 cannot be loaded dynamically, On 2022/7/13 at PM11点27分, zjg076000 said: After the imagecollection can add pictures, but virtualimagelist1 cannot be loaded dynamically, but when it is added manually, the bound pictures can be displayed, and the dynamic loading cannot be displayed, procedure TForm2.Button1Click(Sender: TObject); begin ImageCollection2.Add('1','D:\pict\1.png'); ImageCollection2.Add('2','D:\pict\2.png'); ImageCollection2.Add('3','D:\pict\2.png'); VirtualImageList1.ImageCollection:=ImageCollection1; VirtualImageList1.UpdateImageList; end; Share this post Link to post