I need to use a class instead of writing for a VirtualStringTree node.
Should I declare it in the standard (but in this case, complicated) way:
PNode = ^TNode; TNode = record obj: TMyObject; end; //.. var fNd: PNode; begin fNd:= vstTree.getNodeData(vstTree.AddChild(nil)); fNd.obj:= TMyObject.Create; //..
Or should I use TMyObject directly? If so - how ?! What about the purpose (construction) of an object and its release?
Thanks in advance m.
class delphi delphi-7 virtualtreeview
migajek
source share