use nxui::messagebox; use nxui::NativesAndMessaging::*; fn main() { let msg_box = messagebox::MessageBox { title: "This is a test".to_string(), message: "Hello World".to_string() }; // Normal Dialog msg_box.show(BUTTONSTYLE_OK,0,WINDOWSTYLE_MODAL); // Information Dialog msg_box.show(BUTTONSTYLE_OK,DIALOGSTYLE_INFO,WINDOWSTYLE_MODAL); // Question Dialog msg_box.show(BUTTONSTYLE_OK,DIALOGSTYLE_QUESTION,WINDOWSTYLE_MODAL); // Exclamation Dialog msg_box.show(BUTTONSTYLE_OK,DIALOGSTYLE_EXCLAMATION,WINDOWSTYLE_MODAL); // Error Dialog msg_box.show(BUTTONSTYLE_OK,DIALOGSTYLE_ERROR,WINDOWSTYLE_MODAL); }