SOL9 2.0 Sample: Calendar

SOL9 2.0 Samples

1 Screenshot


2 Source code

/*
 * Calendar.cpp 
 * Copyright (c) 2009 Antillia.com TOSHIYUKI ARAI. ALL RIGHTS RESERVED. 
 */


// SOL++2000
// 2000.02.18

#include <sol\ApplicationView.h>
#include <sol\MonthCalendar.h>

namespace SOL {

class Calendar :public ApplicationView {
private:
    MonthCalendar calendar;

public:
    /**
     * Constructor
     */
    Calendar(Application& applet, const TCHAR* name, Args& args)
        :ApplicationView(applet, name, args)
    {
        Args ar;
        calendar.create(this, NULL, ar);
        // Use a default layoutManager
        add(calendar);
    }
};

}

// Calendar Main
void    Main(int argc, TCHAR** argv)
{
    const TCHAR* appClass = _T("Calendar");
    try {
        Application applet(appClass, argc, argv);
        
        Args args;
        args.set(XmNclassName, appClass);
        Calendar calendar(applet, appClass, args);
        calendar.realize();
        applet.run();
    } catch (...) {

    }
}


Last modified: 11 Nov 2009

Copyright (c) 2009 Antillia.com ALL RIGHTS RESERVED.