unit Ausgabe;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TFrame1 =
class(TFrame)
Button1: TButton;
Edit1: TEdit;
procedure Button1Click(Sender: TObject);
private
{ Private-Deklarationen }
public
{ Public-Deklarationen }
end;
var frame1:Tframe1;
implementation
{$R *.dfm}
uses HauptUnit;
procedure TFrame1.Button1Click(Sender: TObject);
VAR I:Integer; newEdit, newEdit2:TEdit; newRadioButton:TRadioButton;
BEGIN
I:=Strtoint(HauptUnit.Form1.EditNR.text);
newEdit2 := TEdit.Create(Self);
newEdit2.
Name := '
eCode'+IntToStr(I);
newEdit2.Parent:=Self;
newEdit2.Visible:=false;
newRadioButton:=TRadioButton.Create(Self);
newRadioButton.
Name:='
Markiere'+InttoStr(I);
newRadioButton.Parent:=Self;
newRadioButton.top:= I * 30 + 8;
newRadioButton.Left:=4;
newRadioButton.checked:=true;
newRadioButton.caption:='
';
newRadioButton.Visible:=true;
newRadioButton.Show;
newEdit := TEdit.Create(Self);
newEdit.
Name := '
eAusgabe'+IntToStr(I);
newEdit.Parent := Self;
newEdit.Top := I * 30 + 8;
{Abstand in Abhängikeit von I}
newEdit.Left := 30;
newEdit.Width := 500;
newEdit.Ctl3D:=false;
newEdit.borderstyle:=bsnone;
newEdit.
ReadOnly:=true;
newEdit.Text:='
';
newEdit.Show;
HauptUnit.Form1.EditNR.text:=inttostr(I+1);
end;
end.