Autor Beitrag
HaRaH
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 65



BeitragVerfasst: So 20.02.05 17:34 
hi,
weiß jemand, wie man auf einen Fokuswechsel von MDIChilds reagieren kann? Und wie man abfragt, welches MDIChild dann aktiv ist?

danke!
HaRaH Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 65



BeitragVerfasst: So 20.02.05 19:05 
FormActivate ist schonmal die Methode, die aufgerufen wird, wenn ein Child-Fenster aktiv wird
HaRaH Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 65



BeitragVerfasst: Mo 21.02.05 13:08 
aber gibt es eine Möglichkeit von der MDI-Mutterform auf das gerade aktive MDI-Child zuzugreifen?
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Mo 21.02.05 14:01 
Es gibt eine Eigenschaft des Hauptfensters die da heißt:
ActiveMDIChild
Ich könnte mur unter Umständen vorstellen, dass das helfen kann. :wink:
HaRaH Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 65



BeitragVerfasst: Mo 21.02.05 14:26 
jasocul hat folgendes geschrieben:
Es gibt eine Eigenschaft des Hauptfensters die da heißt:
ActiveMDIChild

ja, die habe ich inzwischen auch gefunden. Aber wie kann ich von dort aus, auf eine Prozedur im Childfenster zugreifen?
ausblenden Delphi-Quelltext
1:
  ActiveMDIChild.MEINE_PROZEDUR;					

funktioniert leider nicht.
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Mo 21.02.05 14:33 
Kann auch nicht funktionieren.
ActiveMDIChild ist vom Typ TForm.
Du musst dann schon
ausblenden Delphi-Quelltext
1:
TMeineMDIForm(ActiveMDIChild).ProzedurName;					

schreiben.
Es sei denn, es ist eine Methode aus TForm.
HaRaH Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 65



BeitragVerfasst: Mo 21.02.05 15:06 
danke! - es klappt! :D