图象闪烁(50分)

T

tsucol

Unregistered / Unconfirmed
GUEST, unregistred user!
1.请各位帮帮忙,我在DELPHI5中编写了的下面过程运行正常,但是到了DELPHI6中却发生闪烁现象,不知什么原因。
procedure Tstageform.Timer1Timer(Sender: TObject);
begin BitBlt(image1.Canvas.Handle,0,0,image1.Width,image1.Height,cloud.Canvas.Handle,
0,0,srccopy);
image1.Canvas.TextOut(150,i,'制作人员 : ****工作组');
image1.Canvas.TextOut(136,i+40,'制作时间 : 2001.9~2001.11');
i:=i-1;
if i=0 then
begin
close;
end;
end;
 
1.DoubleBuffer:=true;
-----------------------
2.
Protected
Paint;override;
..........

procedure TForm1.Paint;
begin
...........
end;

 
你将form的DoubleBuffered设为true试试看,应该就可以了,
 
多人接受答案了。
 

Similar threads

I
回复
0
查看
580
import
I
I
回复
0
查看
567
import
I
I
回复
0
查看
539
import
I
S
回复
0
查看
573
SUNSTONE的Delphi笔记
S
顶部