Autor Beitrag
elundril
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Sa 18.08.07 11:54 
Halloo,

ich hab mal eine theorotische Frage:

Ich hab ein Form1. In dem dazugehörigen Quelltext erzeuge ich während der Laufzeit ein anderes Formular (Form2). Beim Form2 setzte ich den Owner beim create auf Form1. Damit sich Form2 auch schließt wenn form1 geschlossen wird da form1 mein Hauptformular ist. Das heist Form1 ist der Owner von Form2. Und Form2 ist .... tja was ist nun form2 in bezug auf form1? Child, Client, ...?????

lg elundril
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Sa 18.08.07 12:01 
Man könnte sie als Child bezeichnen

_________________
Markus Kinzler.
elundril Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Sa 18.08.07 12:06 
ok danke. Und was für proceduren gibt es um mit dem Child zu arbeiten?? Kann ich zum beispiel in allen Fenstern von Form2 die existieren eine procedure ausführen lassen?

lg elundril
cuejo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 142

Win XP
Delphi 7 Personal und 2005 PE
BeitragVerfasst: Sa 18.08.07 16:56 
Das kommt auf die Sichtbarkeit der Methoden an.

_________________
Computer sind dumm, aber fleißig. Deshalb arbeite ich so gerne damit.
elundril Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Sa 18.08.07 17:21 
jop aber ganz generell. nehmen wir an im Quelltext des Form2 steht im public teil des Forms die procedure MachSachen(var DieSache: string).

lg elundril
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Sa 18.08.07 19:37 
Dependency ;-)

Child wäre Form2, wenn Form1 Parent wäre.

Client, wenn Form2 bei Form1 Dienste benutzen würde (Methoden aufruft, keine CallBacks ;-)). Form2 wäre in diesem Fall von Form1 unabhängig.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.