Displaying a Message Box with yes and no option

static void JobBoxDemo(Args _args)
{
DialogButton diagBut;
str strMessage = "The No button should have initial focus.";
str strTitle = "Title";
;
diagBut = Box::yesNoCancel(
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;
}
pause;
}

Leave Comment

Your email address will not be published. Required fields are marked *