![]() |
![]() |
| Paypal | FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
|||||||
| Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
|
|
Herramientas | Buscar en Tema | Desplegado |
|
#2
|
|||
|
|||
|
Hola:
Una idea: En el OnCreate del Form Código:
for i:=Low(Bts) to High(Bts) do Bts[i] := nil; Código:
for i:=Low(Bts) to High(Bts) + 1 do
if i > High(Bts) then
ShowMessage ('No caben más botones. Lo siento');
else if Bts[i] := nil then
begin
Bts[i] := TButton.Create (Self);
with Bts[i] do
begin
Parent := Self;
Caption := 'Soy el Botón Nº ' + IntToStr(i);
Left := i * 64;
Top := 30;
Visible := TRUE;
end;
break;
end
Un Saludo |
|
|
|