changeset 168:5057d1475aee

Add example for language file support.
author Frank Benoit <benoit@tionex.de>
date Sun, 19 Oct 2008 02:48:51 +0200
parents d97169edcd8c
children d36bf485a753
files user/RetryMessageBox.d user/dsss.conf
diffstat 2 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/user/RetryMessageBox.d	Sun Oct 19 02:48:51 2008 +0200
@@ -0,0 +1,12 @@
+import dwt.std;
+void main() {
+    Shell shell = new Shell(Display.getDefault());
+    MessageBox.showMessageBox(
+        DWT.getMessage( "SWT_A_Sample_Text" ),
+        DWT.getMessage( "SWT_Sample" ),
+        shell,
+        DWT.ABORT|DWT.RETRY|DWT.IGNORE|DWT.ICON_QUESTION );
+    Display.getDefault().dispose();
+    return 0;
+}
+
--- a/user/dsss.conf	Sun Oct 19 02:00:57 2008 +0200
+++ b/user/dsss.conf	Sun Oct 19 02:48:51 2008 +0200
@@ -25,3 +25,5 @@
 [drawingboard/DrawingBoard.d]
 [torhu_synctest.d]
 [region_shell.d]
+[RetryMessageBox.d]
+