Ver Mensaje Individual
  #2  
Antiguo 05-09-2006
Avatar de jachguate
jachguate jachguate is offline
Miembro
 
Registrado: may 2003
Ubicación: Guatemala
Posts: 6.254
Reputación: 28
jachguate Va por buen camino
Tené cuidado, que vas a terminar creando 1000 botones y dejarás la máquina sin recursos!

Código Delphi [-]
PosY := 10;
while not query1.eof do
begin
  with TButton.Create(Self) do
  begin
    Caption := query1Nombre.AsString;
    OnClick := AlgunMetodo;
    Parent := Self;
    Top := PosY;
    PosY := PosY + Height + 5;
  end;
  query1.Next;
end;

Hasta luego.

__________________
Juan Antonio Castillo Hernández (jachguate)
Guía de Estilo | Etiqueta CODE | Búsca antes de preguntar | blog de jachguate
Responder Con Cita