if messagedlg('没有输入地址,是否要输入地址?';mtconfirmation;mbyes;0)=idok then
及
messagebox
等如何使用?
谢谢
及
messagebox
等如何使用?
谢谢
解决方案 »
- stringgrid 如何方便的显示颜色?
- 处理一串字符串的时候.如何让他按照特定的分符得到
- 穷举密码的例子
- 为什么全局指针变量不能起作用?
- 在Indy9中有关FTP上传下载文件问题,在线急等
- 临时表的问题,delphi+oracle,请看正文,谢谢!
- 我在一个form中有N个DBedit 我应该什么判断如果有一个dbedit的数据改变了,就执行某一段程序?
- 我的可用分不多,真心的希望您会过来看一看;
- 大哥救救我拉,我怎么现在一点思路都没有拉!
- 如何获取文件的版本信息?
- 大虾们简述一下rave的基本用法,我现在无头绪了
- delphi中图象的保存和读取(数据库:sql server )以及判断图片是否超出sql server 的image类型,最好不要使用delphi 的Tdbimage
Flags = MB_OK);DescriptionUse MessageBox to display a generic dialog box a message and one or more buttons. Caption is the caption of the dialog box and is optional.MessageBox is an encapsulation of the Windows API MessageBox function. TApplication抯 encapsulation of MessageBox automatically supplies the missing window handle parameter needed for the Windows API function.The value of the Text parameter is the message, which can be longer than 255 characters if necessary. Long messages are automatically wrapped in the message box. The value of the Caption parameter is the caption that appears in the title bar of the dialog box. Captions can be longer than 255 characters, but don't wrap. A long caption results in a wide message box.The Flags parameter specifies what buttons appear on the message box and the behavior (possible return values). The following table lists the possible values. These values can be combined to obtain the desired effect.Value MeaningMB_ABORTRETRYIGNORE The message box contains three push buttons: Abort, Retry, and Ignore.
MB_OK The message box contains one push button: OK. This is the default.
MB_OKCANCEL The message box contains two push buttons: OK and Cancel.
MB_RETRYCANCEL The message box contains two push buttons: Retry and Cancel.
MB_YESNO The message box contains two push buttons: Yes and No.
MB_YESNOCANCEL The message box contains three push buttons: Yes, No, and Cancel.MessageBox returns 0 if there isn抰 enough memory to create the message box. Otherwise it returns one of the following values:Value Numeric value MeaningIDOK 1 The user chose the OK button.
IDCANCEL 2 The user chose the Cancel button.
IDABORT 3 The user chose the Abort button.
IDRETRY 4 The user chose the Retry button.
IDIGNORE 5 The user chose the Ignore button.
IDYES 6 The user chose the Yes button.
IDNO 7 The user chose the No button.
-----
messagebox比messagedlg
改为:
if messagedlg('没有输入地址,是否要输入地址?',mtconfirmation,[mbyes],0)=mryes then
showmessage('我的对话框可以弹出了,并且我点的是yes按钮!');