Autor Beitrag
DelphiDelphin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 181



BeitragVerfasst: Mo 28.02.05 16:24 
Hi @all bin der Neuling hier :lol: und Hoffe bin Richtig :roll:

Hab da Folgendes Problem. Ich Habe Zwei Formen .
Wenn ich in Form1 einen Button drücke öffnet sich From2 durch den Befehl
Form2.Showmodal
Soweit so gut. Aber wenn ich wieder etwas an Form1 Machen möchte muss ich Form2 Zuerst Schliessen.
Aber ich möchte dass ich Form2 offen lassen kann und trotzdem Form1 bearbeiten kann.
Aber wenn ich Form1 Schliesse soll sich logo Form2 auch schliessen
Hat jemand Hilfe :roll:
Stefan-W
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 475

Win 7 SP1
D2005 PE
BeitragVerfasst: Mo 28.02.05 16:28 
Hi
ich hab da paar Ideen (sind aber nicht getestet)

Also, tu statt ShowModal nur Show nehmen und dafür in Form1 ins OnClose-Ereignis den Schliessenbefehl für Form2 mit rein nehmen

sollte funtzen...

Tschau
F34r0fTh3D4rk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 5285
Erhaltene Danke: 29

Win Vista (32), Win 7 (64)
Eclipse, SciTE, Lazarus
BeitragVerfasst: Mo 28.02.05 16:35 
mach das mit show anstatt showmodal, wenn form1 dein hauptforumlar ist, dann schließt sich form2 automatisch
DelphiDelphin Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 181



BeitragVerfasst: Mo 28.02.05 18:49 
Hi Danke Es hat Funktioniert.
Dass Problem ich hab jetzt noch Form3 Hinzugefügt Jetzt Möchte ich Wenn möglich
Das wen man auf den Button von Form 1 Klickt das sich dass Form2 auch für Form3 öffnet
Und wenn ich dann Den Button zum öffnen von Form 3 Drücke das Form 2 dann Auch bei Form 3 Ist. 8)
F34r0fTh3D4rk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 5285
Erhaltene Danke: 29

Win Vista (32), Win 7 (64)
Eclipse, SciTE, Lazarus
BeitragVerfasst: Mo 28.02.05 18:53 
??? möchtest du dass sich das formular zweimal öffnet oder nur einmal entweder
aufgerufen von form1 oder von form3 ?
DelphiDelphin Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 181



BeitragVerfasst: Mo 28.02.05 19:11 
A Ha nur einmal durch Form1 aber dass das Form2 bei Form1 immer noch aktiv ist.

Wenn wir schon gerade dabei sind
Wie kann ich ne Frage machen
Also klicke auf den Button kommt die Frage bei Ja macht es etwas bei nein kehrt es wieder zurück???

DHX
F34r0fTh3D4rk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 5285
Erhaltene Danke: 29

Win Vista (32), Win 7 (64)
Eclipse, SciTE, Lazarus
BeitragVerfasst: Di 01.03.05 15:22 
MessageDLG
DelphiDelphin Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 181



BeitragVerfasst: Di 01.03.05 17:39 
MessageDlg('Glückwunsch Total Richtig') [mbok]= Close;
Was ist hier der Fehler :roll:
F34r0fTh3D4rk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 5285
Erhaltene Danke: 29

Win Vista (32), Win 7 (64)
Eclipse, SciTE, Lazarus
BeitragVerfasst: Di 01.03.05 17:41 
ausblenden Delphi-Quelltext
1:
close:= MessageDlg('Glückwunsch Total Richtig', mtInformation, [mbok], 0) = mrok;					


oder ist close keine boolsche variable, wenn nein, dann kannst du das "close:= " nämlich weglassen, und das " = mrok" auch, das ist nur um abzufragen, was geklickt wurde, hol dir dafür am besten einen messageDLG Creator, ich hab auch mal einen gemacht, hier ist aber bestimmt auch einer irgendwo im forum :D
DelphiDelphin Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 181



BeitragVerfasst: Mi 02.03.05 12:44 
Danke 8)