Autor Beitrag
Borni
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23



BeitragVerfasst: Fr 01.07.05 15:48 
Moin Leute!

Gibt es eine Funktion mit der man im MDIChild eine Funktion oder Prozedur aus dem Parent-Formulat aufrufen kann?

Viele Grüße
Borni
alias5000
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2145

WinXP Prof SP2, Ubuntu 9.04
C/C++(Code::Blocks, VS.NET),A51(Keil),Object Pascal(D2005PE, Turbo Delphi Explorer) C# (VS 2008 Express)
BeitragVerfasst: Fr 01.07.05 15:59 
*Spontane Reaktion:*
Ich würde mal sagen, das du die MainForm benutzt, bekommst du mit der Anweisung
ausblenden Delphi-Quelltext
1:
application.MainForm.GetProcAdress //du kannst hier jede TForm einsetzen					

einen Pointer auf die Kunktion. Und dann hast du Zugriff drauf.
StefanH
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1144

Win XP
D5 Standard, D7 Pers, D2005 Pers
BeitragVerfasst: Fr 01.07.05 16:01 
www.delphi-forum.de/viewtopic.php?t=36883

dürfte helfen... (suchen hilft! :roll: ;))

_________________
"Als es noch keine Computer gab, war das Programmieren noch relativ einfach."(Edsger W. Dijkstra)
"Ich bin nicht von Sinnen, sondern ich rede wahre und vernünftige Worte." (Paulus)
Borni Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23



BeitragVerfasst: Fr 01.07.05 16:47 
Ja, danke. Das habe ich auch so gemacht. Ich hatte gehofft, dass man direkt auf das Parent-Formular zugreifen kann ohne die uses klausel, des Main-Formulars einzubinden.

Aber vielen Dank!

Gruß
Borni