Describes minimum required functionality from MonthCalendar control.
You can find more information in comments below. Overrided methods can be found in corresponding base interface.
class IMonthCalendar :public virtual IControl
{
public:
void(*OnChange)(IMonthCalendar *sender); // Event called when new date is activated
virtual int getYear() = 0; // Return year
virtual int getMonth() = 0; // Return month
virtual int getDay() = 0; // Return day
virtual int getMinYear() = 0; // Return minimum allowed year
virtual int getMinMonth() = 0; // Return minimum allowed month
virtual int getMinDay() = 0; // Return minimum allowed day
virtual int getMaxYear() = 0; // Return maximum allowed year
virtual int getMaxMonth() = 0; // Return maximum allowed month
virtual int getMaxDay() = 0; // Return maximum allowed day
virtual bool setYear(const int value) = 0; // Set year
virtual bool setMonth(const int value) = 0; // Set month
virtual bool setDay(const int value) = 0; // Set day
virtual bool setMinYear(const int value) = 0; // Set minimum allowed year
virtual bool setMinMonth(const int value) = 0; // Set minimum allowed month
virtual bool setMinDay(const int value) = 0; // Set minimum allowed day
virtual bool setMaxYear(const int value) = 0; // Set maximum allowed year
virtual bool setMaxMonth(const int value) = 0; // Set maximum allowed month
virtual bool setMaxDay(const int value) = 0; // Set maximum allowed day
virtual bool Next() = 0; // Show next month/year/...
virtual bool Prev() = 0; // Show previous month/year/...
virtual bool Today() = 0; // Set active date to today(if it is in allowed range of course)
};
Namespace: | nitisa::standard |
Include: | Standard/Controls/IMonthCalendar.h |