dwt-samples
Ty Tower
tytower at hotmail.com.au
Mon Feb 11 02:41:57 PST 2008
Ok so I have the examples in directory dwt/dwtexampes now I want to compile them on a linux machine. Did you say this was not yet possible?
If I want to get a look at the folowing ...how do I do it
[code]
module dwtexamples.helloworld.HelloWorld1;
import dwt.widgets.Display;
import dwt.widgets.Shell;
/*
* This example demonstrates the minimum amount of code required
* to open an DWT Shell and process the events.
*/
void main(){
Display display = new Display ();
Shell shell = new Shell (display);
shell.open ();
while (!shell.isDisposed ()) {
if (!display.readAndDispatch ()) display.sleep ();
}
display.dispose ();
}
// for unknown reason, there are linker errors. These imports are the workaround
import tango.io.Stdout;
import tango.math.Math;
import tango.text.convert.Format;
import tango.util.Convert;
import tango.util.PathUtil;
[/code]
More information about the Digitalmars-d-dwt
mailing list