Autor Beitrag
Bloodycrow
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 20


Delphi 7
BeitragVerfasst: Do 01.06.06 15:53 
so es tut mir leid,aber ich habe meine Probleme mit dem Öffnen von anderen Formen.

Konkretes Beispiel: Ich habe ein MainMenu und möchte nun, durch ein weiteren Menüpunkt,von dort aus in eine anderes Formular( mit neuen Anweisungen) wechseln, meine Frage wie geht das?

sorry, wenn das zu easy ist und ich wieder was verpeilt hab, aber dennoch ist es wichtig für mich, da ich ein projekt machen muss.

Danke

Bloody
PLuS
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 98

Win XP, Suse Linux 9.0
D5 Standard, D2005 Personal; Perl; PureBasic
BeitragVerfasst: Do 01.06.06 16:23 
Wenn das Formular schon erstellt wurde bzw. von Anfang an erstellt wurde:

ausblenden Delphi-Quelltext
1:
Form2.Show;					


alternativ:
ausblenden Delphi-Quelltext
1:
Form2.ShowModal;					


Wenn es noch nicht erstellt wurde:
ausblenden Delphi-Quelltext
1:
2:
Application.CreateForm(TForm2, Form2);
Form2.Show;

_________________
Der letzte macht die Tür zu!
Bloodycrow Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 20


Delphi 7
BeitragVerfasst: Do 01.06.06 16:27 
ich danke dir für die Antwort. Is mir schon fast peinlich das nicht zu können.
Leuchtturm
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1087

Win Vista, Knoppix, Ubuntu
Delphi 7 Pe, Turbo Delphi, C#(VS 2005 Express), (X)HTML + CSS, bald Assembler
BeitragVerfasst: Do 01.06.06 16:29 
wen ich dich richtig verstande habe suchst du das hier:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
procedure TForm1.NeueForm1Click(Sender: TObject);
var frmHilfe: TForm2; 
begin
frmHilfe := TForm2.Create(nil);//erzeugt Form2
frmHilfe.ShowModal;//ruft Form auf
end;

Müsste gehen.
Du musst in uses noch unit2 einbinden.
unit 2 ist der Name der Form2.
und umd das neue Formular zu nutzen musst du noch auf Datei --> Neu --> Formular(bei Delphi7)
Leuchtturm

Edit: Klar: die weniger schreiben sind schneller

_________________
Ich bin dafür verantwortlich was ich sage - nicht dafür was du verstehst.