EtheaDev / SVGIconImageList

Three engines to render SVG (Delphi Image32, Skia4Delphi, Direct2D wrapper) and four components to simplify use of SVG images (resize, fixedcolor, grayscale...)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TSVGIconImageCollection not work in FMX

kabiri opened this issue · comments

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

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.

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

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

i want get SVGText of icon.

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

ok
thanks