欢迎UP,如何显示动态图标就是图标闪烁(是标题栏上的图标) UP有分!! 欢迎UP,如何显示动态图标就是图标闪烁(是标题栏上的图标) UP有分!! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 用一个TTimer和一个TImageList就可了在TTimer的OnTimer中写: private ico:TIcon; IcoIndex:Integer; ...procedure TForm1.FormCreate(Sender:TObject);begin ico:=TIcon.Create; icoIndex:=0; Timer1.OnTimer(Timer1);end;procedure TForm1.Timer1Timer(Sender:TObject);begin if icoIndex:=0 then icoIndex:=1 else icoIndex:=0 ImageList.GetIcon(icoIndex,Ico); Application.Icon:=ico;end; procedure TForm1.FormClose(Sender:TObject);begin ico.Free;end 用getcaretblinktime和flashwindow()就搞定了。这样写://控制是否闪动procedure TForm1.Button1Click(Sender: TObject);begin timer1.Interval:=getcaretblinktime; timer1.Enabled:=not timer1.Enabled;end;//闪动procedure TForm1.Timer1Timer(Sender: TObject);begin flashwindow(form1.Handle,true);end; Hook针对C/S程序自动填单,如果在给两个文本框输入值之间延时? 一个简单的sql语句,怎么老不对? TDbgrid的问题 怎样动态创建一些checkBox 控件 各位高手:有用spcomm或mscomm开发过串行通信系统的请指教!!!! 敬请高手指点 拆鸟问题————线程类的问题 采集卡问题 delphi6中的installShield Ado又有新问题!!! 很菜鸟的问题,100分诚请高手作答,在线等待。up有分。 从MP3文件中获得ID3-Tag up有分!!!
在TTimer的OnTimer中写:
private
ico:TIcon;
IcoIndex:Integer;
...procedure TForm1.FormCreate(Sender:TObject);
begin
ico:=TIcon.Create;
icoIndex:=0;
Timer1.OnTimer(Timer1);
end;procedure TForm1.Timer1Timer(Sender:TObject);
begin
if icoIndex:=0 then
icoIndex:=1
else
icoIndex:=0
ImageList.GetIcon(icoIndex,Ico);
Application.Icon:=ico;
end;
begin
ico.Free;
end
procedure TForm1.Button1Click(Sender: TObject);
begin
timer1.Interval:=getcaretblinktime;
timer1.Enabled:=not timer1.Enabled;
end;
//闪动
procedure TForm1.Timer1Timer(Sender: TObject);
begin
flashwindow(form1.Handle,true);
end;