IDatePicker


Describes minimum required functionality from DatePicker control.

You can find more information in comments below. Overrided methods can be found in corresponding base interface.

// Minimum and maximum constraints(year + month + day) works togather. For example, if MaxYear = 2000, MaxMonth = February, MaxDay = 5 it means the date can be set to any value less or equal to 2000-02-05 
class IDatePicker :public virtual IControl
{
public:
    void(*OnChange)(IDatePicker *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 
};
Namespace: nitisa::standard
Include: Standard/Controls/IDatePicker.h