home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
yacl-012.zip
/
uidemo
/
hello1
/
hello1.cxx
next >
Wrap
C/C++ Source or Header
|
1995-02-03
|
533b
|
22 lines
// A "hello, world" program using YACL
#include "ui/composit.h"
#include "ui/applic.h"
#include "ui/label.h"
#include "base/base.h"
int UI_Application::Main (int, char* [])
{
UI_CompositeVObject* root = new UI_CompositeVObject
(NULL, NULL, FALSE, UI_Rectangle (300, 50, 300, 200));
MakeTopWindow (root);
UI_Label* label = new UI_Label (root, UI_Rectangle (35, 90, 230, 20));
root->Title() = "YACL One";
label->Title() = "Hello, world, this is YACL!";
Run();
return 0;
}