Registriert seit: 22. Aug 2009
Ort: Hilden
116 Beiträge
Delphi 2010 Professional
|
Re: Timer1 restarten
25. Aug 2009, 20:30
So siehts jetzt aus:
Delphi-Quellcode:
type
TForm1 = class(TForm)
procedure FormDblClick(Sender: TObject);
private
FFlag: Cardinal;
end;
procedure TForm1.Timer1Timer(Sender: TObject);
begin
case FFlag of
0:Image1.Visible:=False;
1:Image2.Visible:=False;
2:Image3.Visible:=False;
3:Image4.Visible:=False;
4:Image5.Visible:=False;
5:Image6.Visible:=False;
6:Image7.Visible:=False;
7:Image8.Visible:=False;
8:Image9.Visible:=False;
9:Image10.Visible:=False;
10:Image11.Visible:=False;
14:Image12.Visible:=False;
15:Image13.Visible:=False;
16:Image14.Visible:=False;
17:Image15.Visible:=False;
18:Image16.Visible:=False;
19:Image17.Visible:=False;
20:Image18.Visible:=False;
end;
end;
inc(FFlag);
end;
Image1: TImage;
Button1: TButton;
Image2: TImage;
Image3: TImage;
Image4: TImage;
Image5: TImage;
Image6: TImage;
StatusBar1: TStatusBar;
Panel1: TPanel;
Image7: TImage;
Image8: TImage;
Timer1: TTimer;
Image9: TImage;
Image10: TImage;
Image11: TImage;
Image12: TImage;
Image13: TImage;
Image14: TImage;
Image15: TImage;
Image16: TImage;
Image17: TImage;
Image18: TImage;
procedure Button1Click(Sender: TObject);
procedure Image1MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
procedure Image2MouseUp(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
procedure Image3MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
procedure Image4MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
procedure Image5MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
procedure Image6MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
procedure Image7MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
procedure Image8MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
procedure Timer1Timer(Sender: TObject);
procedure Image9MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
procedure Image10MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
procedure Image12MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
procedure Image11MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
procedure Image13MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
procedure Image14MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
procedure Image15MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
procedure Image16MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
procedure Image17MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
procedure Image18MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
procedure FormCreate(Sender: TObject);
private
{ Private-Deklarationen }
public
{ Public-Deklarationen }
end;
Resultat:
Die Methode FormCreate die auf Form1.OnCreate verweist existiert nicht Soll der Verweis entfernt werden?
#
Mfg Ghost
Michael
|
|
Zitat
|