[SOLVED] VST db Click lazarus / 31-LCL ---------------------------------------------------------------------- Pe3s · 2023-03-05 07:34 Hello, how do I correct the code so that double-clicking works only on child elements? Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TForm1.VSTDblClick(Sender: TObject);var  Data: PData;  Node: PVirtualNode;begin  Node:= VST.FocusedNode;  if Node <> nil then  begin    Data := VST.GetNodeData(Node);    ShellExecute(Handle, 'open', PChar(Data^.Link), nil, nil, SW_SHOW);  end;end; ---------------------------------------------------------------------- paweld · 2023-03-05 08:00 You can use the same function as in case setting icons, which is GetNodeLevel.  Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TForm1.VSTDblClick(Sender: TObject);var  Data: PData;  Node: PVirtualNode;begin  Node:= VST.FocusedNode;  if (Node <> nil) and (VST.GetNodeLevel(Node) > 0) then  begin    Data := VST.GetNodeData(Node);    ShellExecute(Handle, 'open', PChar(Data^.Link), nil, nil, SW_SHOW);  end;end; ---------------------------------------------------------------------- Pe3s · 2023-03-05 11:43 @paweld, Thank you