Autor Beitrag
DissA$teR!
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 17

Win XP
Turbo Delphi 2006
BeitragVerfasst: Do 22.03.07 10:45 
Hallo!
Wenn ich einen button drücke, dann soll das formular, welches zuletzt angezeigt wurde, erneut gezeigt werden. Aber wie mache ich das?
Danke im Vorraus für eure Antworten.
wulfskin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1349
Erhaltene Danke: 1

Win XP
D5 Pers (SSL), D2005 Pro, C, C#
BeitragVerfasst: Do 22.03.07 10:50 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
//Deklarieren und Initialisieren
var
  LetztesFormular, AktuellesFormular: TForm;
begin
  LetztesFormular := nil;
  AktuellesFormular := nil;

//Ereignis OnActivate oder etwas vergleichbares
  LetztesFormular := AktuellesFormular;
  AktuellesFormular := Self;

//ButtonClick
  if Assigned(LetztesFormular) then
    LetztesFormular.Show;
Gruß Hape!


Zuletzt bearbeitet von wulfskin am Do 22.03.07 11:20, insgesamt 1-mal bearbeitet
DissA$teR! Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 17

Win XP
Turbo Delphi 2006
BeitragVerfasst: Do 22.03.07 11:09 
Cool. Danke, es funzt.