Autor Beitrag
D. Annies
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 1843

windows 7
D6 Enterprise, D7 Pers und TD 2006
BeitragVerfasst: Sa 22.01.05 22:01 
Hi, Delpher,

(wie) kann ich ein oder mehrere Memos zur Laufzeit in ein TempForm(ular)
bringen?

Danke für Antworten,
Detlef Annies
Elite
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Sa 22.01.05 22:23 
Was meinst du mit einem TempFormular? Ein dynamisch erzeugtes? :gruebel:
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Sa 22.01.05 22:25 
Wenn die Form schon existiert, dann kannst du das z.B. so machen:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
procedure TForm1.Button1Click(Sender: TObject);
var memo:Tmemo;
begin
    memo:=Tmemo.Create(Form2);
    memo.Parent:=Form2;
    memo.Align:=alclient; // oder andere Eigenschaften zuweisen
    memo.Text:='Memo erstellt';
end;


und wenn die Form vorher nicht existiert, muss man halt auch die Form erzeugen:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
form:=TForm.Create(Form1);
form.Width:=200;
form.Height:=200;
//[...]
form.Show;

_________________
We are, we were and will not be.
D. Annies Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 1843

windows 7
D6 Enterprise, D7 Pers und TD 2006
BeitragVerfasst: Sa 22.01.05 22:45 
Hi, Gausi und Co,

danke für die schnelle Antwort. Die Einbringung von "parent" war mir noch ganz neu!

Grüße aus HL, D. Annies :D