怎样在一个线程中使用一个Timer? 我想在线程中使用Timer,怎样定义和通知Timer调用那个OnTimer函数? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 动态创建一个timer1,然后把timer1.ontimer赋成你写的函数 procedure myTimer(sender: TObject);begin ShowMessage('hehe');end;procedure MyThread.Execute;var mTimer: TTimer;begin ....... mTimer := TTimer.Create(self); mTimer.OnTimer := MyTimer; mTimer.Active := True; .......end;大概就是这样子的 打印机控制命令设置水平制表值有没有人做过? 请问如何取得本地Sql Server服务器名? 一个简单问题 请推荐经典第三方控件,及下载网址 如何实现一个FIFO队列 delphil7開發出的程序,用審麼工具可以作安裝程序!!!!!!!!!!!!!! 用DbGrid实现的功能吗 急救!!!工程文件打不开了。 在线等待:Windows启动时弹出“Exception EStackOverflow in moudle ...”的错误提示而无法运行Delphi的程序,why? chechy,上个问题太简单了。还是看看这个吧。 这个正则表达式怎么写 MOUSE 状态
begin
ShowMessage('hehe');
end;procedure MyThread.Execute;
var
mTimer: TTimer;
begin
.......
mTimer := TTimer.Create(self);
mTimer.OnTimer := MyTimer;
mTimer.Active := True;
.......
end;大概就是这样子的