delphi Application.Restore不起作用了,该如何处理  
官方Delphi 学习QQ群: 682628230(三千人)
频道

delphi Application.Restore不起作用了,该如何处理


Application.Restore不起作用了
窗体上只有一个Button和一个Timer(1秒计时)
代码如下:
procedure TForm1.Button1Click(Sender: TObject);
begin
  Application.Minimize;
  Timer1.Enabled := True;
end;

procedure TForm1.Timer1Timer(Sender: TObject);
begin
   Timer1.Enabled := False;
   Application.Restore
end;


单击Button后窗口最小化了,可是不能在1秒后自动还原。

运行环境:Delphi 2010 、Windows 7

------解决方案--------------------
设置为False后就可以了
Application.MainFormOnTaskbar := False;  // 加入截图程序 这句放到非form1 窗口

推荐分享
图文皆来源于网络,内容仅做公益性分享,版权归原作者所有,如有侵权请告知删除!
 

Copyright © 2014 DelphiW.com 开发 源码 文档 技巧 All Rights Reserved
晋ICP备14006235号-8 晋公网安备 14108102000087号

执行时间: 0.038839101791382 seconds