測試程序:注意lable的字體比較大40
一共有7個label,一個timer,解決閃的問題,測試通過就給分.謝謝unit Unit1;interfaceuses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, jpeg, ExtCtrls;type
TForm1 = class(TForm)
Image1: TImage;
Label1: TLabel;
Timer1: TTimer;
Label2: TLabel;
Label3: TLabel;
Label4: TLabel;
Label5: TLabel;
Label6: TLabel;
Label7: TLabel;
procedure Timer1Timer(Sender: TObject);
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;var
Form1: TForm1;
iNum:integer;implementation{$R *.dfm}procedure TForm1.Timer1Timer(Sender: TObject);
begin
Application.ProcessMessages;
Inc(iNum);
label1.Caption:= '我是第' + inttostr(iNum) + '個大好人!';
label2.Caption:= '我是第' + inttostr(iNum) + '個大好人!';
label3.Caption:= '我是第' + inttostr(iNum) + '個大好人!';
label4.Caption:= '我是第' + inttostr(iNum) + '個大好人!';
label5.Caption:= '我是第' + inttostr(iNum) + '個大好人!';
label6.Caption:= '我是第' + inttostr(iNum) + '個大好人!';
label7.Caption:= '我是第' + inttostr(iNum) + '個大好人!';
end;procedure TForm1.FormCreate(Sender: TObject);
begin
iNum:=10000;
timer1.Enabled:= true;
timer1.Interval:= 100;
end;end.
一共有7個label,一個timer,解決閃的問題,測試通過就給分.謝謝unit Unit1;interfaceuses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, jpeg, ExtCtrls;type
TForm1 = class(TForm)
Image1: TImage;
Label1: TLabel;
Timer1: TTimer;
Label2: TLabel;
Label3: TLabel;
Label4: TLabel;
Label5: TLabel;
Label6: TLabel;
Label7: TLabel;
procedure Timer1Timer(Sender: TObject);
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;var
Form1: TForm1;
iNum:integer;implementation{$R *.dfm}procedure TForm1.Timer1Timer(Sender: TObject);
begin
Application.ProcessMessages;
Inc(iNum);
label1.Caption:= '我是第' + inttostr(iNum) + '個大好人!';
label2.Caption:= '我是第' + inttostr(iNum) + '個大好人!';
label3.Caption:= '我是第' + inttostr(iNum) + '個大好人!';
label4.Caption:= '我是第' + inttostr(iNum) + '個大好人!';
label5.Caption:= '我是第' + inttostr(iNum) + '個大好人!';
label6.Caption:= '我是第' + inttostr(iNum) + '個大好人!';
label7.Caption:= '我是第' + inttostr(iNum) + '個大好人!';
end;procedure TForm1.FormCreate(Sender: TObject);
begin
iNum:=10000;
timer1.Enabled:= true;
timer1.Interval:= 100;
end;end.
解决方案 »
- aiGooo 来取分分 200~~~,其它人不要进了...
- ocx组件如何注册,delphi2005
- 概念问题!!!拜托,俺没分了!
- lxpbuaa(桂枝香在故国晚秋)补侬100分
- dbedit控件问题!
- 还没有见过这样的贴子,但又在实践中经常碰到的问题,怪事。。。。
- 窗体最小化时所需要的......
- 硬件底层通讯协议的开发问题?
- Delphi,我就是找不到ADo中的Error的錯誤代號,VB中有Err.number來判斷記錄重複,Delphi+Ado,在哪里?
- 关于panel的问题
- 当tscrollbox.HorzScrollBar .visible=false时,如何滚动tscrollbox?
- 一个困扰我几天的问题
begin
iNum:=10000;
timer1.Enabled:= true;
timer1.Interval:= 100;
DoubleBuffered := True; //insert 打开双缓冲
end;