Autor Beitrag
WileECoyote
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 82



BeitragVerfasst: Di 02.08.05 09:07 
Hallo Leute,

hat jemand von euch eventuell eine "Vorlage", wie man MDI-Anwendungen steuert?
Hab sowas noch nie gemacht und steh´ leider ein wenig unter Zeitdruck.

Gruß, Wile E.
noidic
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 851

Win 2000 Win XP Vista
D7 Ent, SharpDevelop 2.2
BeitragVerfasst: Di 02.08.05 09:19 
Moin,

was meinst du genau mit steuern?

Gruß

noidic

_________________
Bravery calls my name in the sound of the wind in the night...
WileECoyote Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 82



BeitragVerfasst: Di 02.08.05 19:45 
naja, generell wie man so etwas am besten aufbaut, ereignisse überwacht etc...
ich habe in 4 weiteren fenstern (a la photoshop) diverse elemente, die später abhängig davon
sein sollen, was in dem mdi-fenster steht. also muss ich natürlich irgendwie überwachen, welches fenster nun immer aktiv ist, ob überhaupt eines da ist etc. wie gesagt, ich habe sowas noch nie gemacht und wäre über ein beispiel sehr dankbar, oder einen hinweis, wo ich sowas finden kann.

danke und gruß, Wile E.
StefanH
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1144

Win XP
D5 Standard, D7 Pers, D2005 Pers
BeitragVerfasst: Di 02.08.05 19:56 
user profile iconWileECoyote hat folgendes geschrieben:
naja, generell wie man so etwas am besten aufbaut, ereignisse überwacht etc...
ich habe in 4 weiteren fenstern (a la photoshop) diverse elemente, die später abhängig davon
sein sollen, was in dem mdi-fenster steht. also muss ich natürlich irgendwie überwachen, welches fenster nun immer aktiv ist, ob überhaupt eines da ist etc. wie gesagt, ich habe sowas noch nie gemacht und wäre über ein beispiel sehr dankbar, oder einen hinweis, wo ich sowas finden kann.


die MDIForm hat eine Eigenschaftnamens ActiveMDIChild. Ansonsten haben die MDIChildren so ulkige Ereignisse wie onActivate, onClose usw. ;)

_________________
"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)
WileECoyote Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 82



BeitragVerfasst: Di 02.08.05 20:00 
ui...tatsächlich haben sie so etwas...ist das also nichts anderes, als eine "normale anwendung, bei der mehrere forms offen sind"...scheint ja doch nicht so schwer zu sein...danke erstmal, manchmal braucht man nur einen kleinen denkanstoss...

gruß, Wile E.
WileECoyote Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 82



BeitragVerfasst: Di 02.08.05 20:22 
aber wie kann ich auf die kompponenten zugreifen, die auf dem formular sind?
mit activemdichild bekomme ich ein form zurück, dass ist dann ja aber nicht vom typ mdichild und hat dementsprechend nicht die komponenten, die auf auf dem form angelegt habe??
StefanH
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1144

Win XP
D5 Standard, D7 Pers, D2005 Pers
BeitragVerfasst: Di 02.08.05 20:24 
so:
ausblenden Delphi-Quelltext
1:
2:
if ActiveMDICHild is TMeineForm then
  TMeineForm(ActiveMDICHild).MeinMemo.Lines.Add('mh.');

_________________
"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)
WileECoyote Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 82



BeitragVerfasst: Di 02.08.05 20:30 
ha...sehr geil...das funktioniert...super...vielen dank, du hast mir tierisch weitergeholfen

gruß, Wile E.