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
321 stars 93 forks source link

TSVGIconImageCollection not work in FMX #246

Closed kabiri closed 1 year ago

kabiri commented 1 year ago

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

carloBarazzetta commented 1 year 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 1 year 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 1 year ago

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

kabiri commented 1 year ago

i want get SVGText of icon.

carloBarazzetta commented 1 year 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 1 year ago

ok thanks