#include "appl.h"
#include "button.h"
#include "filesele.h"
#include "window.h"
#include "menu.h"
#include "frame.h"
#include "messageb.h"
#include "label.h"
#include "text.h"

void main ( unsigned int argc, char **argv )
{
  id app, window, label1, label2, text;
  app=[[WDCApplication alloc] initWithName:"Application"];
  window=[[WDCWindow alloc] initWithName:"MainWindow" managedBy:app];
  [window setArg:"width" to:(void*)800];
  [window setArg:"height" to:(void*)600];
  [[WDCLabel alloc] initWithName: "Hello" managedBy:window];
  text=[[WDCText alloc] initWithName: "Text" managedBy:window];
  [text setArg:XmNrows to:(void*)5];
  [text setArg:XmNcolumns to:(void*)80];
  [text setArg:XmNeditMode to:XmMULTI_LINE_EDIT];
  [text setArg:XmNvalue to:"this is a test of the window"];
  [app run];
}
    
