Today I used the FNC bitmap container in order to display icons to FNCTreeView, however I wasted 2 hours trying to figure why the "tag" of every bitmapcontainer item does not hold an integer value.
Finally I used the "Name" in order to identify every element and associate icon to a treeview node.
I left this message so in the next releases maybe you can remove the "tag" property since it's useless.
The Tag property is not useless, It is not required for the Tag property to contain an automatically filled index. The Tag property is indented for the user to add custom data. What you need is the Index property, which is automatically increased for every item, since the item is part of a collection. This is basic knowledge
That said, I kindly ask that we maintain a respectful tone when discussing any challenges. We are always here to help and support you, and open, constructive communication is essential for resolving issues efficiently.
Indeed I was trying to use the "tag" property for my own needs, but unfortunately I wasted 2 hours of my time.
That's why I suggested you to remove it instead of fixed your bug
On the image below I marked with red my own DB identifier I was looking to used on "tag" property of item container... but as you know it was "useless", so after wasted my time I tried with the "name" property and use it for my own needs.
I was using TAG properties from a lot of TMS components until today that your bitmapcontainer gave me headaches, I agree with you that this must be "basic knowledge" specially for TMS employees, but apparentely it was not... correct?
Again, it's not a bug, it's a helper property entirely up to the developer to do what he wants to do with it. We'll not remove it since that will introduce breaking changes to other customers who used it properly.
First of all I just want to clarify you that my word "useless" was referring to the "tag" property only, not to you and not to FNC UI Pack.
I will take care from now the words I will use to express my concerns to TMS support, so I apologize for any inconvenience this may cause you.
With my new Delphi 12.3 and all the components I used to work with fresh installed I was preparing you a DEMO to show you the "tag" property of every bitmap container item does not retain specific data but seems to work properly.
I don't use TMS Smart Setup for FNC UI Pack but for TMS Business Standard only, so I assume I was wrong in my code and fault TMS of my mistakes, so I have to apologize to you again for my bad behavior.
Picture above with red mark show where it was my fault because I was using Anode.DataInteger NOT ANode.Node.DataInteger and for that reason when I was trying to compare with the bitmapcontainer item.tag my algorithm was not working.
I needed a way to match an image container to a FNCTreeView item (node) so my user see a 24x24 picture of it.