Hello,
if I try to add a SVG image(s) to an TMSFNCBitmapContainer no image is displayed on screen in the editor and nothing is painted during runtime.
If I try your example FNCUITreeView everything works finebut I try to use it in a VCL app.
What could I do possibly wrong?
The svg is from icon8 and has a fixed size
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" width="50px" height="50px">....
Besides this there seems to be a theming bug in the editor of TMSFNCBitmapContainer. The buttons have a black text in the dark theme of the ide.
Pieter
(Pieter)
April 23, 2025, 12:57pm
2
Do you have other third-party components installed or units in the uses list that might override the type of class we use for registering SVG? If you are using Skia, this can be a cause, also if you have installed TMS VCL UI Pack, the SVG class is registered. Please add VCL.TMSFNCTypes / AdvTypes to the uses list and see if that helps for runtime SVG editing.
No Skia, only a mixture of TMS VCL UI Pack and FNC components.
Adding VCL.TMSFNCTypes / AdvTypes changes nothing.
Removing SVGIconImageList fixed the editor.
But left over 's the follwoing problem:
I tried to link TAdvSVGImageCollection with a TVirtualImage.
The image is shown during design time but nothing is displayed during untime.
Pieter
(Pieter)
May 27, 2025, 8:19am
4
The order of the units VCL.TMSFNCTypes / AdvTypes is important, you might want to switch the order and see if this changes anything at runtime.