Autor Beitrag
ingo.
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 37



BeitragVerfasst: Do 24.02.05 16:36 
Hy,

ich hab in einem Delphi-Prog eine MainMenue1-Komponente mit der ich verschiede Dinge aufrufen will. Je nach dem welchen Punkt ich wähle, soll im Form ein anderer Inhalt erscheinen. Ich weiss, dass ich das Attribut Visible ändern kann, aber man verliert dann den überblick.
Ich will praktisch das immer ein Form in ein bestehendes implemmentiert wird, je nach dem, welcher Menue-Punkt ausgewählt wurde.
Wie kann ich das verwirklichen?
retnyg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2754

SNES, GB, GBA, CPC, A500, 486/66, P4/3.0HT: NintendOS, AmigaOS, DoS
Delphi 5, Delphi 7
BeitragVerfasst: Do 24.02.05 20:21 
hmm vielleicht mit einer klasse TMyForm = class(Tform), der noch eine sub-form eigenschaft zugewiesen werden kann.
MitschL
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 211

Win 98 SE, Win 2000
D5 Pers, D6 Pers und D7 Pro
BeitragVerfasst: Fr 25.02.05 10:04 
Soll das eine MDI-Anwendung werden?
Dann hättest DU MDI-Childs, die in separaten Units vom Hauptfenster aus angezeigt werden.

gegrüßt!

_________________
"Bloßes Ignorieren ist noch keine Toleranz." (Theodor Fontane)
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: Fr 25.02.05 10:35 
Wenn es wirklich nur in einem Fenster sein soll, würde ich ein TPageControl verwenden. Ansonsten ist die Variante als MDI-Anwendung auch gut.
ingo. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 37



BeitragVerfasst: Fr 25.02.05 15:56 
Was genau versteht man unter einer MDI-Anwendung?
ingo. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 37



BeitragVerfasst: Fr 25.02.05 17:09 
hy,

hab jetzt rumprobiert und herausgefunden dass eigentlich frames sind was ich suche. Nur will ich einen grossen Frame im Fenster, bei dem ich die Quelle dynamisch halten kann. will dann z. b. eine neue unit erzeugen (z. b. fonta), einen button in ihr plazieren. wenn dann der user im hauptprog im menue punkt x wählt, wird die quelle im frame geändert und auf fonta gesetzt. hoffe ist jetzt verstanden :). hab aber realsierungsprobleme, da die quelle fuer den frame immer fest ist.
jemand eine idee?