I have a big TGListTree and I would like to allow users to filter it and hide the non-matching elements. I can’t find any method to actually hide a TGListTreeItem. I don’t want to delete the item because I might need it right after again and I also embed data in it.
So, did I miss a useful method that does this ?
Otherwise, would it be possible to introduce such a method ?
Thanks in advance,
There is no such method in TGListTree… But what is the problem with adding and removing list tree items yourself (as deleting item doesn’t delete user data…)?
I thought that deleting item would delete user data. If it’s not the case, then it should be ok to remove list tree items myself.
Thanks for your answer.
By default, TGListTreeItem donen’t own the user data: