Skip to content
Carlo Barazzetta edited this page May 11, 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: download it from here: https://materialdesignicons.com.

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. For some Delphi versions you 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: we provide only packages from Delphi 10.3. For non-unicode Delphi version (Like Delphi 7) you cannot use characters with "surrogate pairs".


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, both in the VCL and FMX versions 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 that shows the VCL component Editor:

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

You can also do it in the FMX component Editor:

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

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!

If you are building an High-DPI enabled application, the component resize itself according to the Form where it is placed, but if the component is placed into a Datamodule, you must resize icons by yourself, settings the new size.

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

A. In the FMX you don't need to write nothing: if you are using the AutoSizeBitmap property the ImageList produces scaled bitmap required by the GUI for every component that uses it.

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