begin
 messageslg('123456789',mtcustom,[mbyes,mbno],0);
end;
请问:提示内容为123456789,按钮为yes和no,怎么让它的caption为987654321呢?

解决方案 »

  1.   

    那么改用这个:
    Application.MessageBox(23456789', '987654321', MB_YESNO);
      

  2.   

    MessageBox():API函数
    The MessageBox function creates, displays, and operates a message box. The message box contains an application-defined message and title, plus any combination of predefined icons and push buttons. 
    int MessageBox(
        HWND hWnd, // handle of owner window
        LPCTSTR lpText, // address of text in message box
        LPCTSTR lpCaption, // address of title of message box  
        UINT uType  // style of message box
       );
    uType: Warning 惊叹号
    Error 停止符号
    Information 感叹符号
    Confirmation 确认符号
    Custom 无位图符号
      

  3.   

    Application.MessageBox(23456789', '987654321', MB_YESNO);简单。好用。