1.消息提示 (Info)

    Box::info("Hello Microsoft Dynamics AX.""Title");

 
 

2.警告提示 (warning)

    Box::warning("Hello Microsoft Dynamics AX.""Title");

 
 

3.錯誤提示 (Error)

    Box::stop("Hello Microsoft Dynamics AX.""Title");

 
 

4.”不要再次提醒”

   Box::infoOnce("Hello Microsoft Dynamics AX.","Title","helpURL","Owner");
 

 

5. Yes/No選擇

         DialogButton diagBut;
        str strMessage = "Here is message";
        str strTitle = "Title";
        ;
        diagBut = Box::yesNo(
            strMessage,
            DialogButton::No, // Initial focus is on the No button.
            strTitle);

        if (diagBut == DialogButton::No)
        {
            print "The No button was clicked.";
        }
        else
        {
            print "The button that was clicked was: ", diagBut;           
        }

6. Yes And All Option

 

DialogButton diagBut;
    ;
 
    diagBut = Box::yesAllNoAllCancel("Hellow Microsoft Dynamics AX." ,DialogButton::Yes,"Title");
 
    switch (diagBut)
    {
        case DialogButton::Cancel :
            box::info("You selected the 'Cancel' button.");
            break;
        case DialogButton::No :
            box::info("You selected the 'No' button.");
            break;
        case DialogButton::NoToAll:
            box::info("You selected the 'NoToAll' button.");
            break;
        case DialogButton::Yes :
            box::info("You selected the 'Yes' button.");
            break;
        case DialogButton::YesToAll:
            box::info("You selected the 'YesToAll' button.");
            break;
    }
文章標籤
創作者介紹
創作者 lionlionchopper 的頭像
lionlionchopper

呆子獅的夢想世界

lionlionchopper 發表在 痞客邦 留言(0) 人氣()