view helloworld.d @ 40:7fb1ab011933

made macro implementations active, one compile problem in OS.d:2554
author Frank Benoit <benoit@tionex.de>
date Thu, 10 Jan 2008 08:18:45 +0100
parents f0cac58ac62b
children 8f049b136add
line wrap: on
line source

module helloworld;

import dwt.SWT;
import dwt.widgets.Display;
import dwt.widgets.Shell;

void main(){
    Display display;
    Shell shell;

    display = new Display();
    shell = new Shell(display);
    shell.setText("Simple SWT Sample");
    shell.open();
    while (!shell.isDisposed()) {
        if (!display.readAndDispatch()) {
            display.sleep();
        }
    }
}