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: So 07.08.05 19:27 
Hi, Delpher,

wie kann ich ein Prg so laufen lassen, dass ein 2. Formular auf dem ersten Formular immer (in der Mitte) sichtbar ist?

Danke für Hilfe,
D. Annies
jakobwenzel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1889
Erhaltene Danke: 1

XP home, ubuntu
BDS 2006 Prof
BeitragVerfasst: Mo 08.08.05 08:39 
Am einfachsten ist es, wenn du position vom 2. Form auf poMainFormCenter setzt, und es dann mit Show(Modal) anzeigst.

_________________
I thought what I'd do was, I'd pretend I was one of those deaf-mutes.
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: Mo 08.08.05 19:10 
Hallo Jacob,

leider funktioniert deine Idee mit D6 nicht. Du meintest form2.showmodal?

Nun, anwarten ...

Gruß,
Detlef Annies
oern
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 142

Linux, Win XP
D7
BeitragVerfasst: Di 09.08.05 18:57 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
form2.parent:=form1;
form2.borderstyle:=bsnone;
form2.top:=form1.clientheight/2-form2.wigth/2;
form2.left:=form1.clientwigth/2-form2.height/2;
form2.show;


Das sollte funktionieren :)
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: Mi 10.08.05 21:11 
Hi, oern,

danke für deine Idee, ich werde sie morgen in der Schule mal ausprobben.

Grüße aus Lübeck, D.Annies
jakobwenzel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1889
Erhaltene Danke: 1

XP home, ubuntu
BDS 2006 Prof
BeitragVerfasst: Do 11.08.05 14:53 
Anstatt
ausblenden Delphi-Quelltext
1:
2:
form2.top:=form1.clientheight/2-form2.wigth/2;
form2.left:=form1.clientwigth/2-form2.height/2;


kann man auch form2.position:=poMainFormCenter; schreiben.

_________________
I thought what I'd do was, I'd pretend I was one of those deaf-mutes.
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 13.08.05 18:00 
Hi, Jakob (et aliter),

ich habe es jetzt so gelöst, dass ich codirt habe:

ausblenden Delphi-Quelltext
1:
form2.parent := form1					


Das Bringt es!!

Gruß, Detlef Annies