This question will seem obvious to those who haven\'t encountered the problem themselves.
I need to handle selection changes in VTV. I have a flat list of nodes. I need
You forgot OnStateChange event. This event will be fired right after any selection change and you can then handle all selected nodes.
procedure TForm1.vstStateChange(Sender: TBaseVirtualTree; Enter, Leave: TVirtualTreeStates); begin if tsChangePending in Leave then DoSomething; end;