Autor Beitrag
motion
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 295

XP, Linux
D7 Prof
BeitragVerfasst: Di 20.09.05 13:35 
Meine Applikation ermöglicht das beliebige Starten von Unterfunktionen (=Forms) als dynamische Formulare.

Beispiel: Aus dem Hauptprogramm sind 2 * Unterfunktion A und 1* Unterfunktion B gestartet

ausblenden Quelltext
1:
2:
3:
Main -> A1
     -> A2
     -> B

Zum Hauptprogramm sind jetzt also drei weitere Fenster offen.
Jetzt wird in A2 eine Suchfunktion C gestartet (geöffnet).
ausblenden Quelltext
1:
2:
3:
Main -> A1
     -> A2  -> C
     -> B

Jetzt kommt mein Problem:
öffne ich C per form.show, kann man jederzeit wieder A2 aktivieren und dort weitere Operationen anwerfen. Öffne ich allerdings C per form.showmodal, so sind auch Main, A1 und B betroffen, d.h. nicht editierbar.
Wie öffne ich also Fenster entlang eines solchen Pfades, damit (in meinem Beispiel hier):
Main, A1, C und B vom Benutzer aktiviert werden können?
Vielleicht ein Flag in A2, welches, sobald es den focus bekommen soll, automatisch nach C wechselt (oder läßt sich dieses Verhalten schon bei der Erzeugung/beim Aufruf des Forms irgendwie definieren)?
rochus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 416

Win XP Prof, Fedora Core 4, SuSE 7.0
D7 Ent, D2005 Pers
BeitragVerfasst: Di 20.09.05 14:20 
Hi.
Ich weiß zwar nicht, ob es die sauberste Lösung ist (dafür gibt's aber vielleicht noch was besseres!), aber du könntest ja, wenn dein A2 aktiviert wird, prüfen, ob ein C1 Fenster offen ist und wenn ja, ein BringToFront auf C1 machen.

Gruß

_________________
Im Nachhinein ist man immer ein Schlauch!
"Dream as if you'll live forever, live as if you'll die today!" James Dean