zoukankan      html  css  js  c++  java
  • Application.Restore不起作用了

    http://www.myexception.cn/delphi/695243.html

    Application.Restore不起作用了
    窗体上只有一个Button和一个Timer(1秒计时)
    代码如下:

    Delphi(Pascal) code
    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后就可以了

    Delphi(Pascal) code
    Application.MainFormOnTaskbar := False;
    delphi lazarus opengl 网页操作自动化, 图像分析破解,游戏开发
  • 相关阅读:
    Disharmony Trees HDU
    Xenia and Bit Operations CodeForces
    Gym
    背包入门
    搜索入门
    Farm Tour POJ
    Flow Problem HDU
    Hie with the Pie POJ
    Building a Space Station POJ
    kuangbin 最短路集合
  • 原文地址:https://www.cnblogs.com/delphi-xe5/p/5392613.html
Copyright © 2011-2022 走看看