Loading SVG images from a file into TAdvSVGImageCollection

Hello!

Is possible to load the SVG images into the TAdvSVGImageCollection.Images?

I tried this, but nothing happens:

svgImages: TAdvSVGImageCollection;
...
svgImages.Images.Items[I].Data.LoadFromFile(SvgName)
...

No errors, just nothing is filled :)

Did you add AdvTypes.pas?

Yes, both AdvTypes and VCL.TMSFNCTypes.

found the problem :slight_smile:
The images get loaded correctly - I needed to update the TVirtualImageList :slight_smile:

img24virt.UpdateImageList;

Great, thanks for the followup!