changeset 132:14df61b39bee

MessageBox convinience functions
author Frank Benoit <benoit@tionex.de>
date Wed, 13 Feb 2008 01:36:12 +0100
parents 2ea6488981d8
children ce00a993e4c3
files dwt/widgets/MessageBox.d
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dwt/widgets/MessageBox.d	Wed Feb 13 01:33:29 2008 +0100
+++ b/dwt/widgets/MessageBox.d	Wed Feb 13 01:36:12 2008 +0100
@@ -272,7 +272,7 @@
 /**
  * DWT extension
  */
-public static int showMessageBox(char[] str, char[] title = null, Shell shell = null, int style = DWT.OK | DWT.ICON_WARNING) {
+public static int showMessageBox(char[] str, char[] title, Shell shell, int style) {
     MessageBox msgBox = (shell is null ) ? new MessageBox( style ) : new MessageBox(shell, style);
     msgBox.setMessage(str);
     if(title !is null){
@@ -286,6 +286,9 @@
     return showMessageBox( str, title, shell, DWT.OK | DWT.ICON_INFORMATION );
 }
 /// DWT extension
+alias showInfo showInformation;
+
+/// DWT extension
 public static int showWarning(char[] str, char[] title = null, Shell shell = null) {
     return showMessageBox( str, title, shell, DWT.OK | DWT.ICON_WARNING );
 }