EtheaDev / SVGIconImageList

Three engines to render SVG (Delphi Image32, Skia4Delphi, Direct2D wrapper) and four components to simplify use of SVG images (resize, fixedcolor, grayscale...)
Apache License 2.0
327 stars 96 forks source link

TSVGIconImageCollection not work in FMX #246

Closed kabiri closed 2 years ago

kabiri commented 2 years ago

when i add TSVGIconImageCollection to FMX form delphi add Vcl.BaseImageCollection to unit

carloBarazzetta commented 2 years ago

Yes, because you must use TSVGIconImageList for FMX (look at SVGIconImageListDemoFMX). TSVGIconImageCollection is a VCL component used to combine a collection of SVG images and VirtualImageList.

kabiri commented 2 years ago

becase TSVGIconImageList don`t have SVGText property i use TSVGIconImageCollection. i can not use "SVGIconImageList1.Source[7].SVGText" "SVGIconImageCollection1.SVGIconItems[7].SVGText"

carloBarazzetta commented 2 years ago

You can use: function TSVGIconImageList.InsertIcon(const AIndex: Integer; const ASVGText: string; const AIconName: string = ''): TSVGIconSourceItem;

kabiri commented 2 years ago

i want get SVGText of icon.

carloBarazzetta commented 2 years ago

with LIconItem: TSVGIconItem; LList: TSVGIconImageList; you can:
LIconItem := LList.SVGIconItems[Index]; SvgText := LIconItem.SVGText; Look into SVGIconImageListEditorUnit, the component editor, to explore how to use TSVGIconImageList

kabiri commented 2 years ago

ok thanks