Skip to content
Carlo Barazzetta edited this page Mar 24, 2020 · 18 revisions

FAQ - Tips and tricks

Q. The components are free to use?

A. Yes, they are completely free of use, under Apache license version 2.0.


Q. The MaterialDesignIcons font used in the demos is free to use?

A. Yes, it's completely free of use, under Apache license version 2.0. You can find more Icon Fonts free to use in the web.


Q. Which Delphi version is supported?

A. The VCL component works from Delphi 7 to current version. The FMX component works from Delphi 10.1 to current. Some Delphi version don't have corresponding package, but you can use a similar package of another version. You can also try to recompile FMX version with early versions of Delphi.


Q. At run-time I need the Font installed on the system?

A. Yes or no, it depends by the use of the component: if you don't need to resize or change color of the icons, you can store the Bitmap into dfm file: at runtime the icons are loaded from dfm without the need of the Fonts used to build them.


Q. Can I mix different Icon Fonts in the same ImageList?

A. Yes, in the VCL version you can define at component level the default font (and color) you want to use for every icons or you can specify the font name and the icon color on a specific item, look at this image:

https://github.com/EtheaDev/IconFontsImageList/blob/master/Demo/Images/MixedFonts.jpg

In the FMX version you can define at ItemSource level the attributes (Font, name and color).

Q. Can I resize the icons at run-time?

A. Yes, it is very simple: in the VCL version you need only one line of code:

IconFontsImageList.Size := Value;

The imagelist redraw all the Icons with perfect rescaling!

https://github.com/EtheaDev/IconFontsImageList/blob/master/Demo/Images/DemoChangeSize.gif

In the FMX version you can set the AutoSize property to produce scaled bitmap required by the GUI.

Q. Can I change color of icons according to the active VCL Style at runtime?

A. Yes, it is very simple: you need only one line of code:

UpdateIconFontsColorByStyle(IconFontsImageList);

The imagelist redraw all the Icons with a color compatible with the active VCLStyle!

https://github.com/EtheaDev/IconFontsImageList/blob/master/Demo/Images/DemoChangeStyle.gif

Clone this wiki locally