Club Delphi  
    FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > Varios
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

Grupo de Teaming del ClubDelphi

 
 
Herramientas Buscar en Tema Desplegado
  #1  
Antiguo 05-09-2006
DM2005 DM2005 is offline
Miembro
 
Registrado: abr 2005
Posts: 41
Poder: 0
DM2005 Va por buen camino
Recorrer Listbox

Hola a todos, encontre en un hilo a siguiente procedure:

Código Delphi [-]
{$WRITEABLECONST ON}
procedure TForm1.SpeedButton2Click(Sender: TObject);
const
  i: integer = 0;
begin
     with ListBox4 do
        begin
         if i < Count then
          if Items[i] = 'N' then
           begin
             Self.Height := 300;
             Self.Width := 550;
             Self.Left := 400;
             Self.Top := 400;
           end;
          if Items[i] = 'S' then
           begin
             Self.Height := 739;
             Self.Width := 1024;
             Self.Left := 0;
             Self.Top := 0;
           end;
         if i < Count-1 then
            inc(i)
         else
            i:= 0;
        end;
    end;
end;
{$WRITEABLECONST OFF}

esta recorre un listbox, y cuando se encuentra con los item 'N' y 'S', cambia el tamaño del form, la duda es como alterarla para que cuando selecciono un item del listbox (ej.: nº item 22), no recorra el listbox desde el comienzo y si a partir del item que selecciono.
gracias por la ayuda.
Saludos
Responder Con Cita
 



Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro

Temas Similares
Tema Autor Foro Respuestas Último mensaje
recorrer listbox DM2005 Varios 5 01-09-2006 16:19:20
recorrer listbox para modificar tamaño del form DM2005 Varios 1 15-08-2006 14:11:10
Recorrer Archivo INI Coco_jac OOP 6 27-06-2006 20:01:15
Selección multiple / recorrer listbox miguelml Varios 2 28-04-2006 19:44:02
Recorrer un archivo .rtf blamsa Varios 2 25-05-2005 11:52:48


La franja horaria es GMT +2. Ahora son las 16:06:48.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi