www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.dwt - HelloWorld in wxD

Another snippet, all in the name of GUI comparisons:

import wx.wx;

public class HelloWorldApp : App
{
   public override bool OnInit()
   {
     Frame frame = new Frame(null, wxID_ANY, "Hello wxWidgets World");
     frame.CreateStatusBar();
     frame.SetStatusText("Hello World");
     frame.Show(true);
     return true;
   }
}

int main()
{
   HelloWorldApp app = new HelloWorldApp();
   app.Run();
   return 0;
}

Screenshots at http://wxd.sourceforge.net/Hello.html

--anders
Feb 08 2006