Ver Mensaje Individual
  #2  
Antiguo 16-07-2008
[coso] coso is offline
Miembro Premium
 
Registrado: may 2008
Ubicación: Girona
Posts: 1.678
Reputación: 0
coso Va por buen camino
hola, para crear un objeto visual en tiempo de ejecucion y que se vea, debes asignar su propiedad parent

Código Delphi [-]
procedure TForm1.Crea_Panels(num : integer);
var
    p : array [1..100] of TPanel;
    i  : integer;
begin
    if num > 100 then num := 100;

     for i := 1 to num do 
     begin
             p[i] := TPanel.Create(self);
             p[i].Parent := self;
             p[i].Left := i * 10;
             p[i].Top := i * 10;
             p[i].Widht := 9;
             p[i].Height := 9;
             p[i].Visible := true;
     end;
end;

tambien esta este link: http://www.clubdelphi.com/foros/showthread.php?t=57641 X) saludos

Última edición por coso fecha: 16-07-2008 a las 21:25:27.
Responder Con Cita