home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / yacl-012.zip / uidemo / hello1 / hello1.cxx next >
C/C++ Source or Header  |  1995-02-03  |  533b  |  22 lines

  1.  
  2.  
  3. // A "hello, world" program using YACL
  4.  
  5. #include "ui/composit.h"
  6. #include "ui/applic.h"
  7. #include "ui/label.h"
  8. #include "base/base.h"
  9.  
  10. int UI_Application::Main (int, char* [])
  11. {
  12.     UI_CompositeVObject* root = new UI_CompositeVObject
  13.         (NULL, NULL, FALSE, UI_Rectangle (300, 50, 300, 200));
  14.     MakeTopWindow (root);
  15.     UI_Label* label = new UI_Label (root, UI_Rectangle (35, 90, 230, 20));
  16.     root->Title()  = "YACL One";
  17.     label->Title() = "Hello, world, this is YACL!";
  18.     Run();
  19.     return 0;
  20. }
  21.  
  22.