F fishmando Unregistered / Unconfirmed GUEST, unregistred user! 2001-12-11 #1 如何弹出一个提示框,有确定,取消按钮,我记不起了
D dongberlin Unregistered / Unconfirmed GUEST, unregistred user! 2001-12-11 #2 MessageBox(getactivewindow(),PChar(MessageInfo),PChar(Caption),<br> MB_OKCANCEL);
S skyhorse_zjj Unregistered / Unconfirmed GUEST, unregistred user! 2001-12-11 #3 application.messagebox('your text','caption',mb_okcancel+mb_iconinformation)
轩 轩辕散光 Unregistered / Unconfirmed GUEST, unregistred user! 2001-12-11 #4 application.messagbox('123','123***',mb_OKCANCLE+mb_ICONINFROMATION);
F fanhongwei Unregistered / Unconfirmed GUEST, unregistred user! 2001-12-11 #5 var<br>button: integer;<br>begin<br> Button := Application.messagebox('asdfasd','Message Box', MB_OKCANCEL + <br> MB_DEFBUTTON1 + MB_ICONINFORMATION);<br> if (button = IDOK) then<br> Showmessage('OK');<br> if (button = IDCancel) then<br> Showmessage('cancel');<br>end;
var<br>button: integer;<br>begin<br> Button := Application.messagebox('asdfasd','Message Box', MB_OKCANCEL + <br> MB_DEFBUTTON1 + MB_ICONINFORMATION);<br> if (button = IDOK) then<br> Showmessage('OK');<br> if (button = IDCancel) then<br> Showmessage('cancel');<br>end;
C Celestial dog Unregistered / Unconfirmed GUEST, unregistred user! 2001-12-11 #6 Application.Messagbox('asdfjklasd','提示',mb_OKCANCLE+mb_ICONINFROMATION);<br>
S smilboy Unregistered / Unconfirmed GUEST, unregistred user! 2001-12-11 #7 MessageBox(getactivewindow(),PChar(MessageInfo),PChar(Caption),<br> MB_OKCANCEL);<br>
Y YNTW Unregistered / Unconfirmed GUEST, unregistred user! 2001-12-11 #8 Application.MessageBox('内容','标题',MB_OKCancel+MB_IconWarning);
D dolaimi Unregistered / Unconfirmed GUEST, unregistred user! 2001-12-11 #9 有MessageBox(),Messagedlg(),具体使用看Delphi的帮助,有Example
D dingbaosheng Unregistered / Unconfirmed GUEST, unregistred user! 2001-12-11 #10 Application.MessageBox()或MessageBox()等等 <br>具体参数 帮助中有详细介绍
L loveflying Unregistered / Unconfirmed GUEST, unregistred user! 2001-12-11 #11 if messagedlg('你的内容',mtinformation,[mbYES,mbNO],0)=mrYES then<br> state<br>else<br> state;<br>即可!
if messagedlg('你的内容',mtinformation,[mbYES,mbNO],0)=mrYES then<br> state<br>else<br> state;<br>即可!
K kthy Unregistered / Unconfirmed GUEST, unregistred user! 2001-12-11 #12 MessageBox(handle,'要显示内容','标题', MB_OKCANCEL + MB_ICONINFORMATION);<br><br>
J jqw Unregistered / Unconfirmed GUEST, unregistred user! 2001-12-11 #13 windows.messagebox<br>application.messagebox<br>application.messagedlg
R rongdali2001 Unregistered / Unconfirmed GUEST, unregistred user! 2001-12-14 #14 有几种:<br>messagebox(handle,'this is text','this is caption',2); {这里数字改变会有不同的box}<br>or<br>messagedlg('this is text','this is caption',mbinformation,[mbok],0);
有几种:<br>messagebox(handle,'this is text','this is caption',2); {这里数字改变会有不同的box}<br>or<br>messagedlg('this is text','this is caption',mbinformation,[mbok],0);
S shephard Unregistered / Unconfirmed GUEST, unregistred user! 2001-12-14 #15 application.messagebox('your text','caption',mb_okcancel+mb_iconinformation)<br>
S sd_sxj Unregistered / Unconfirmed GUEST, unregistred user! 2001-12-14 #16 Application.Messagbox('asdfjklasd','提示',mb_OKCANCLE+mb_ICONINFROMATION);<br>你赶快结了这个帖子吧.
P patrickpullman Unregistered / Unconfirmed GUEST, unregistred user! 2001-12-14 #19 我觉得Application.MessageBox比较好,Button上的显示是根据系统语言环境改变的。<br>中文Windows上会显示中文,拿给客户的如果是英文显示的总不太好吧。