I have created a virtual tree with multiple node and I want to disable some of them. I've seen there's a States property of a node. Which is a property of a type TVirtualNodeStates so I've check what kind of states I can set and apparently TVirtualNodeStates is a set of TVirtualNodeState.
TVirtualNodeState can be set to vsDisabled so I guess this is what i need to disable a node in my virtual tree.
But I can't do that. This is what I actually tried:
lNode := myTree.addChild(nil);
lNode.States := vsDisabled;
And it gives me the error
incompatible types between
TVirtualNodeStatesandTVirtualNodeState
How can I disable a node then?