Displays a customizable message box with optional buttons and a callback function.
msg_show(icon, ok_button, cancel_button, callback, wait, title, message1, message2, ...)
Show an informational message with an OK button
msg_show(1, 1, 0, "", 1, "Info", "This is an informational message");
Show a warning message with OK and Cancel buttons, waiting for response
msg_show(2, 1, 1, "", 1, "Warning", "Do you want to continue?");
Show a message with a callback function
#onMsgClose print(.arg1); if(.arg1 == 2, print("OK")); if(.arg1 == 1, print("CANCEL")); msg_show(3, 1, 1, "#onMsgClose", 0, "Question", "Proceed with operation?");
Show a message to abort g-code start
#OnStart res = msg_show(3, 1, 1, "", 1, "Question", "Proceed with operation?"); if(res != 2, nan());