Autor Beitrag
Black200607
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 50

Win XP
Pascal(Free Pascal/Lazarus), Java, Php, Python
BeitragVerfasst: Mi 27.12.06 11:51 
Ich wollte wissen wie man mehrere Forms in einem Projekt anzeigt?

Hoffe auf schnelle antworten.
rey003
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 68

Win XP
BDS 2006
BeitragVerfasst: Mi 27.12.06 11:53 
Hallo,
Was verstehst du unter anzeigen? Erstellt hast du sie aber?
Ansonsten:
ausblenden Delphi-Quelltext
1:
Form2.Show;					


Hilft dir das?
Black200607 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 50

Win XP
Pascal(Free Pascal/Lazarus), Java, Php, Python
BeitragVerfasst: Mi 27.12.06 11:57 
Bei mir ist eine zweite Unit die ich nicht brauche.
Und sonst wäre, dass mit dem Form2.show schon das Richtige.
rey003
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 68

Win XP
BDS 2006
BeitragVerfasst: Mi 27.12.06 12:01 
user profile iconBlack200607 hat folgendes geschrieben:
Bei mir ist eine zweite Unit die ich nicht brauche.
Und sonst wäre, dass mit dem Form2.show schon das Richtige.

Warum löscht du sie dann nicht? :?:
(Aber du nicht wenn es die ist, die die andere Form enhält :? )
Black200607 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 50

Win XP
Pascal(Free Pascal/Lazarus), Java, Php, Python
BeitragVerfasst: Mi 27.12.06 12:10 
Aber wenn ich Unit Nummero 2 lösche geht auch Form2 baden!
rey003
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 68

Win XP
BDS 2006
BeitragVerfasst: Mi 27.12.06 12:16 
Na dann wirst du sie doch brauchen! :wink:
Black200607 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 50

Win XP
Pascal(Free Pascal/Lazarus), Java, Php, Python
BeitragVerfasst: Mi 27.12.06 12:46 
Ich möchte nur Wissen wie man in einem Programm 2 Fenster mit Komponenten füllen kann und beide angezeigt (am besten mit nur einer UNIT muss aber nicht sein).
Schüler
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 183



BeitragVerfasst: Mi 27.12.06 12:50 
soweit ich weis braucht jede Form ihre eingene Unit

_________________
Das Leben ist ein Scheiß Spiel aber es hat eine hammer Grafik und grenzt an realismuss.
Black200607 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 50

Win XP
Pascal(Free Pascal/Lazarus), Java, Php, Python
BeitragVerfasst: Mi 27.12.06 12:54 
Ich möchte aber trotzdem beide sehen wenn ich dass Programm starte, wie mach ich das denn?
Schüler
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 183



BeitragVerfasst: Mi 27.12.06 13:03 
in die uses Liste Unit 2 einbinden und dann bei der Form 1 im On create ereignis Form2.Show;

_________________
Das Leben ist ein Scheiß Spiel aber es hat eine hammer Grafik und grenzt an realismuss.
Black200607 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 50

Win XP
Pascal(Free Pascal/Lazarus), Java, Php, Python
BeitragVerfasst: Mi 27.12.06 13:09 
Bei mir kommt diese Meldung:

Zugriffsverletzung bei Adresse 004447AE in Modul 'Projekt1.exe' lesen von Adresse 000002F4
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: Mi 27.12.06 13:12 
Du kannst nicht ein noch nicht erzeugtes Formular anzeigen lassen (OnCreate von Form1 wird vor dem Erstellen von Form2 aufgerufen). Deshalb OnShow oder OnActivate benutzen.

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
Black200607 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 50

Win XP
Pascal(Free Pascal/Lazarus), Java, Php, Python
BeitragVerfasst: Mi 27.12.06 13:15 
Danke es hat geklappt!
:dance: :dance: :dance: