Delphi Application.Restore; 简单用法


本文整理自网络,侵删。

 
TApplicationRestore(Delphi)
描述
本示例在表单上使用计时器。当应用程序运行并且您最小化应用程序时,计时器将启动,并且在发生OnTimer事件时,应用程序将返回其正常大小。然后计时器关闭,直到下一次最小化表单。确保将AppStartTimer方法声明为TForm1的公共方法。在窗体中放置一个TTimer对象,然后在OnTimer事件中输入Timer1Timer。

procedure TForm1.FormCreate(Sender: TObject);
begin
  Application.OnMinimize := AppStartTimer;
end;

procedure TForm1.AppStartTimer(Sender: TObject);
begin
  Timer1.Enabled := True;
end;

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

相关阅读 >>

Delphi 修改webbrowser的内容

datasnap服务器如何得到客户端的ip和端口

Delphi winexec 执行cmd

Delphi中quotedstr介绍及使用

Delphi 获取鼠标坐标

Delphi xe5读取android imei id

Delphi实现屏幕截图、窗口截图、指定区域截图

Delphi exe注入代码

Delphi 三个消息函数的威力

Delphi 常用api 函数

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...