Autor Beitrag
the.fellowship
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 19



BeitragVerfasst: Di 07.02.06 15:22 
Hallo!" Ich bin neu hier!
Ich habe eine Frage zu Delphi....Wie lautet der Befehl, damit man zum nächsten fenster "springen" kann? (zb. von FORM1 zu FORM2, oder so ähnlich....DAnke für eine Antwortr!!)
th.fellowship


Moderiert von user profile iconraziel: Topic aus Delphi Language (Object-Pascal) / CLX verschoben am Mi 08.02.2006 um 19:19
ghost_assassin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 18



BeitragVerfasst: Di 07.02.06 16:59 
hallo

über das menu
"Datei" -> "Unit verwenden"
die entsprechende Unit einbinden

aufruf erfolgt so:
ausblenden Delphi-Quelltext
1:
2:
Form2.Show; {so wird einfach nur das fenster aufgerufen}
Form2.ShowModal; {und so kann der benutzer erst auf die anderen fenster wieder zugreifen, wenn Form2 geschlossen wurde}


hoffe ich konnte helfen
the.fellowship Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 19



BeitragVerfasst: Di 07.02.06 18:11 
Hallo! Danke für deine Antwort....Aber ich kenn mich mit Delphi noch nicht so gut aus und weiß nicht ganz was ich machen soll damit das funktioniert...Bei mir kommt dann eine fehlermeldung "CANNOT MAKE A VISIBLE WINDOW MODAL". Ich habe folgendes gemacht:
NEU...NEW FORM, dann habe ich zwei...UNIT VERWENDEN, und auf ok..dass habe ich bei UNIT 1 und UNIT 2 gemacht....auf PLAY gedrückt...Und dann bekomme ich eine Fehlermeldung. (wenn ich auf den Button klicke den ich mit dem Befhel den du mir gegeben hast belegt habe; damit ich zum 2. fenster komme)
Könntest du mir vielleicht sagen wie ich genau vorgehen muss? DANKE!! IM VORHINAUS!!!
The.Fellowship
Marc.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1876
Erhaltene Danke: 129

Win 8.1, Xubuntu 15.10

BeitragVerfasst: Di 07.02.06 19:17 
;) ich weiß nicht was man da soviel falsch machen kann
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
[...]
implementation
 uses unit2;

{$R *.dfm}

procedure TForm1.Button2Click(Sender: TObject);
begin
 form2.ShowModal;
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
 form2.Show;
end;

end.
the.fellowship Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 19



BeitragVerfasst: Mi 08.02.06 18:22 
Hallo! DAnke für deine Antwort jetzt hats funktioniert...Ich bräuchte noch den befehl, wenn sich etwas berührt....
Wenn es diesen befehl gibt.
raziel
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2453

Arch Linux
JS (WebStorm), C#, C++/CLI, C++ (VS2013)
BeitragVerfasst: Mi 08.02.06 18:25 
Generell gilt hier: Neue Frage, neues Topic.

Also stell die Frage einfach in einem neuen Topic und gut is ;)

_________________
JSXGraph
the.fellowship Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 19



BeitragVerfasst: Mi 08.02.06 18:31 
ok!!