怎样把Application.MessageBox('内容','标题',mb_yesnocancel+mb_iconquestion) 中的三个按钮对应三个事件啊。if Application.MessageBox('内容','标题',mb_yesnocancel+mb_iconquestion)=idyes then 事件1
if Application.MessageBox('内容','标题',mb_yesnocancel+mb_iconquestion)=idno then 事件2
if Application.MessageBox('内容','标题',mb_yesnocancel+mb_iconquestion)=idcancel then 事件3像上面这样写会弹出三次窗口,而我只要弹出一次窗口。
if Application.MessageBox('内容','标题',mb_yesnocancel+mb_iconquestion)=idno then 事件2
if Application.MessageBox('内容','标题',mb_yesnocancel+mb_iconquestion)=idcancel then 事件3像上面这样写会弹出三次窗口,而我只要弹出一次窗口。
解决方案 »
- Delphi 2007如何开发与页面交互的ActiveX?
- 一个关于combobox的关联输出的菜鸟问题,请高手帮忙!
- ActiveX 在浏览器中不显示????
- 如果你做了这种软件,你想不发达都难(1)。
- 用TADOQuery生成的XML文件,无法用TClientDataSet载入
- 高手们,快帮帮我!!!!DELPHI 的分布式开发中遇到的问题!!!
- 用delphi开发数据库程序,你们用什么做报表,你任为那一中好用,功能强大符合中国人的习惯
- 在存储过程中能对数组进行操作吗?
- 如何来实现用UDP接收视频流然后通过TCP转发到服务器
- Delphi XE4 编写 64位 DLL JMP跳转 问题
- 如何定义一个动态的函数或过程
- 运行是程序没反应是什么原因
idyes:..;
idno:..;
else..;
end;
var
i:integer
begin
i:=Application.MessageBox('内容','标题',mb_yesnocancel+mb_iconquestion);
if i=idyes then
....//以下省略
end;
使用CASE不就可以了吗?