IUpDown


Describes minimum required functionality from UpDown control.

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

class IUpDown :public virtual IControl
{
public:
    void(*OnChange)(IUpDown *sender); // Event called when value changed by user 

    virtual int getMin() = 0; // Return minimum allowed value 
    virtual int getMax() = 0; // Return maximum allowed value 
    virtual int getValue() = 0; // Return current value 
    virtual int getStep() = 0; // Return step value 
    virtual IEdit *getAssignedTo() = 0; // Return assigned edit control 

    virtual bool setMin(const int value) = 0; // Set minimum allowed value 
    virtual bool setMax(const int value) = 0; // Set maximum allowed value 
    virtual bool setValue(const int value) = 0; // Set current value 
    virtual bool setStep(const int value) = 0; // Set step value. 1 is minimum 
    virtual bool setAssignedTo(IEdit *value) = 0; // Assign to edit control 

    virtual bool Up() = 0; // Increase value by step 
    virtual bool Down() = 0; // Decrease value by step 
};
Namespace: nitisa::standard
Include: Standard/Controls/IUpDown.h