showMessage method
Shows a message dialog.
- Calls Win32 MessageBox.
- See showDialog.
Implementation
int showMessage(String title, String text,
{int flags = 0,
bool iconWarning = false,
bool iconInformation = true,
bool modal = false}) {
if (iconWarning) {
flags |= MESSAGEBOX_STYLE.MB_ICONWARNING;
} else if (iconInformation) {
flags |= MESSAGEBOX_STYLE.MB_ICONINFORMATION;
}
return showDialog(title, text, flags: flags, modal: modal);
}