messagebox的参数到底有哪些该怎么用?
怎么能加上是、否、取消三个按钮?

解决方案 »

  1.   

    详细点:application.messagebox('信息','提示',MB_YESNOCANCEL)
    返回值:IDYES,IDNO,IDCANCEL
      

  2.   

    application.messagebox('','',MB_YESNOCANCEL);
      

  3.   

    MessageBox(Text, Caption,MB_YESNOCANCEL);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.
      

  4.   

    if application.messagebox('请选择?','提示信息',MB_YESNOCANCEL+MB_ICONQUESTION+MB_DEFBUTTON3)=ID_YES then ...
      

  5.   

    application.MessageBox('ss','1ss',MB_YESNOCANCEL);
    多看看帮助
      

  6.   

    case application.messagebox('信息','是?否?取消?',MB_YESNOCANCEL) of 
    IDYES:
    ......
    IDNO:
    ......
    IDCANCEL:
    .......
      

  7.   

    application.messagebox('信息','提示',MB_YESNOCANCEL)
    返回值:IDYES,IDNO,IDCANCEL
      

  8.   

    用messagedlg也行
    messageDlg('ddd',mtInformation,mbYesNoCancel,0);
      

  9.   

    详细点:application.messagebox('信息','提示',MB_YESNOCANCEL)
    返回值:IDYES,IDNO,IDCANCEL
      

  10.   

    我想问个小问题:在IDYES中写关闭程序成功
    但是在IDNO,IDCANCEL中写取消当前操作,返回窗体的代码为什么就会不成功呢?
    在取消的同时会连着当前窗体一起显示不出来了
    这是为什么呀?
    应该在self的后面加上哪个属性才能实现
    (注:在按钮中写,这三个功能就能成功,但是在窗体的关闭事件里写只能实现'是'的操作)