Tema: TreeView
Ver Mensaje Individual
  #8  
Antiguo 11-10-2005
Avatar de Caro
*Caro* Caro is offline
Moderadora
 
Registrado: jul 2004
Ubicación: Cochabamba, Bolivia
Posts: 2.544
Reputación: 24
Caro Va por buen camino
Holas de nuevo,

Estuve probando el codigo que me pusiste Roman, pero me sale un error

Incompatible types TTreeNode and TWinControl

Código Delphi [-]
function TForm1.GetLevel: Integer;
var
  Node: TTreeNode;
begin
  Result := 0;
  Node := Parent;     //Aqui marca el error
  while Node <> nil do
  begin
    Inc(Result);
    Node := Node.Parent;
  end;
end;
Responder Con Cita