TAdvTreeView SelectedNode

Hi, 


Alternatively you can use the disabled state of an item. Then it is not selectable:

procedure TForm1.AdvTreeView1IsNodeEnabled(Sender: TObject;
  ANode: TAdvTreeViewVirtualNode; var AEnabled: Boolean);
begin
  AEnabled := not (ANode.Text[0] = 'SLK');
end;

procedure TForm1.FormCreate(Sender: TObject);
begin
  AdvTreeView1.NodesAppearance.DisabledFill.Assign(AdvTreeView1.NodesAppearance.Fill);
  AdvTreeView1.NodesAppearance.DisabledStroke.Assign(AdvTreeView1.NodesAppearance.Stroke);
  AdvTreeView1.NodesAppearance.DisabledFontColor := AdvTreeView1.NodesAppearance.FontColor;
end;