var ans = MessageBox.warning( "Do you wish to save the data?", MessageBox.Yes, MessageBox.No ); if (ans == MessageBox.Yes) { save(); }
NoButton; No button is displayed.
Ok; Displays an 'OK' button.
Cancel; Displays a 'Cancel' button.
Yes; Displays a 'Yes' button.
No; Displays a 'No' button.
Abort; Displays an 'Abort' button.
Retry; Displays a 'Retry' button.
Ignore; Displays an 'Ignore' button.
information( label : String,
button1 : ButtonType,
button2 : ButtonType,
button3 : ButtonType,
title : String );
Displays an information message box with the content specified in label.
warning( label : String,
button1 : ButtonType,
button2 : ButtonType,
button3 : ButtonType,
title : String );
Displays a warning message box with the content specified in label.
critical( label : String,
button1 : ButtonType,
button2 : ButtonType,
button3 : ButtonType,
title : String )
Displays a critical error message box with the content specified in label.