Tema: TreeView
Ver Mensaje Individual
  #4  
Antiguo 11-10-2005
Avatar de Lepe
[Lepe] Lepe is offline
Miembro Premium
 
Registrado: may 2003
Posts: 7.424
Reputación: 29
Lepe Va por buen camino
Tambien puedes crearte un simple bucle, ahora no recuerdo si hay una propiedad para ello:

Código Delphi [-]
function GetLevel(node:TTreeNode):integer;
begin
  result := 0;
  while node <> nil do
  begin
    inc(result);
    node := node.parent;
  end;

saludos
Responder Con Cita