Ver Mensaje Individual
  #1  
Antiguo 06-04-2009
Khronos Khronos is offline
Miembro
 
Registrado: abr 2007
Posts: 298
Reputación: 18
Khronos Va por buen camino
Obtener el index de un Nodo

Hola, necesito conocer el index de un nodo:

+Nodo1
--- Hijo
--- Hijo2
+Nodo2 <--- Necesito conocer este identificador
--- Hijo
--- Hijo2

Lo que yo hago es lo siguiente, en el evento OnChange del TTreeView:

Código Delphi [-]
if node.Level = 1 then
      begin
          if node.Index = 0 then
            begin
              if node.GetPrev.Index = 1 then TthreadAlbumList.Create(Node.text);
              if node.GetPrev.Index = 2 then TthreadArtistList.Create(Node.text);
              if node.GetPrev.Index = 3 then TthreadStyleList.Create(Node.text);
              if node.GetPrev.Index = 4 then TthreadFolderList.Create(Node.text);
            end else
              begin
                   {Aquí necesito conocer el Index como antes, para ejecutar el repectivo thread, pero no encuentro la forma }

              end;

      end;

Saludos y gracias.
Responder Con Cita