

// A "hello, world" program using YACL

#include "ui/composit.h"
#include "ui/applic.h"
#include "ui/label.h"
#include "ui/toglbtn.h"
#include "ui/xrtglbtn.h"

int UI_Application::Main (int, char* [])
{
    UI_CompositeVObject* root = new UI_CompositeVObject
        (NULL, UI_Rectangle (300, 50, 300, 200));
    MakeTopWindow (root);
    UI_Label* label = new UI_Label (root, UI_Rectangle (35, 90, 230, 20), 101);
    root->Title()  = "YACL One";
    label->Title() = "Hello, world, this is YACL!";

//     // Testing only:
//     UI_ToggleButton* bn = new UI_ToggleButton
//         (root, UI_Rectangle (35, 60, 230, 20));
//     bn->Title() = "Test button";
//     
//     UI_ExOrToggleButton* bn2 = new UI_ExOrToggleButton
//         (root, UI_Rectangle (35, 30, 230, 20));
//     bn2->Title() = "Test button";
    
    Run();
    return 0;
}

