procedure Tmain.Timer1Timer(Sender: TObject);
begin
application.MessageBox('你们好!','提示:',0);
end程序如上,每隔5秒会提示一下,所以会出很多次
在没有点“取消”或“确定”情况下能不能不出第二次提示,点了后再提示。。
怎么解决????
begin
application.MessageBox('你们好!','提示:',0);
end程序如上,每隔5秒会提示一下,所以会出很多次
在没有点“取消”或“确定”情况下能不能不出第二次提示,点了后再提示。。
怎么解决????
解决方案 »
- fastreport 4.28导出PDF加密的问题
- 如何 查看一个局域网中所有电脑的IP,用户名,MAC地址
- 哪里可下载波到查看 系统配置 (CPU\硬盘、显卡、内存)的VCL
- 求一条高效的SQL语句!!!!!
- 有关一个报表打印出现的问题
- 有关BMP与RES
- 在程序中用到exit,出现了想不到的错误“[Error] ctxs.pas(170): '.' expected but ';' found”,代码如下
- 我用SetWindowRgn把窗体边角变圆了,可是panel的立体效果却不变,请高手进来看看!
- 各位大侠,俺们初出茅庐请多指教。(软件无忧1.0)
- 菜鸟问题2,进来拿分!
- 急需药店的管理软件 哪里有下载
- 如何写数据文件?
procedure TForm1.Timer1Timer(Sender: TObject);
begin
if FindWindow(nil,'提示:') = 0 then
application.MessageBox('你们好!','提示:',0);
end;
if MessageBox(...) = IDOK then
begin
Timer1.Enabled := FALSE;
end;
Return ValuesThe return value is zero if there is not enough memory to create the message box.
If the function succeeds, the return value is one of the following menu-item values returned by the dialog box: Value Meaning
IDABORT Abort button was selected.
IDCANCEL Cancel button was selected.
IDIGNORE Ignore button was selected.
IDNO No button was selected.
IDOK OK button was selected.
IDRETRY Retry button was selected.
IDYES Yes button was selected.
if MessageBox(...) <> IDOK then
begin
Timer1.Enabled := FALSE;
end;
begin
if FindWindow(nil,'提示:') = 0 then
application.MessageBox('你们好!','提示:',0);
end;
你式一试巴
begin
TTimer(Sender).Enabled := false;
application.MessageBox('你们好!','提示:',0);
end
这样如果出现一次后,你没点“确定”或“取消”那么就不会再出现了。
我爱中国,爱我中国,中国爱我
begin
Timer1.Enabled:=False;
application.MessageBox('你们好!','提示:',0);
Timer1.Enabled:=True;end