I need to use a class instead of record for VirtualStringTree node.
Should I declare it standard (but in this case - tricky) way like that:
PNode = ^
you could create the object instance after receiving the node data, as in :
fNd:= vstTree.getNodeData(vstTree.AddChild(nil)); fnd.obj := TMbyObject.Create;
or you could try and assign it directly
Pointer(Obj) := vstTree.getNodeData(...);