1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs;
type
TForm1 = class(TForm)
procedure FormCreate(Sender: TObject);
private
{ Déclarations privées }
public
{ Déclarations publiques }
end;
var
Form1: TForm1;
implementation
uses Unit2;
{$R *.dfm}
procedure TForm1.FormCreate(Sender: TObject);
var
I1 : integer;
Formx : TForm2 ;
begin
Form1.BorderStyle:=bsnone;
For i1 := 0 to 4 do
begin
Application.CreateForm(TForm2, Formx);
Formx.Caption := 'Suivi étuve n°' + inttostr(I1+1);
Formx.Visible := true ;
SetWindowPos(formx.Handle, 0, i1*10,i1*10,
0, 0, SWP_NOSIZE or SWP_SHOWWINDOW);
end;
end;
end. |
Partager