CColorBox


Implements ColorBox control.

You can find more information in comments below. Overrided methods can be found in corresponding base classes and interfaces.

class CColorBox :public virtual IColorBox, public CCustomDropDown
{
public:
    bool isAcceptItem(IListItem *item) override;
    IListItemColor *getItem(const int index) override;
    int getActiveIndex() override;

    bool setActiveIndex(const int value) override;

    bool AddItem(IListItem *item) override;
    bool InsertItem(IListItem *item, const int before) override;
    bool DeleteItem(const int index) override;
    bool DeleteItem(IListItem *item) override;
    bool DeleteItems() override;

    bool Add(IListItemColor *item) override;
    bool Insert(IListItemColor *item, const int before) override;
    bool Delete(const int index) override;
    bool Clear() override;
    bool Open() override;
    bool Close() override;

    CColorBox();
    CColorBox(IForm *parent);
    CColorBox(IControl *parent);

    bool hasStandardColors() const; // Return whether standard colors are included in list 
    bool hasExtendedColors() const; // Return whether extended colors are included in list 
    bool hasNoneColor() const; // Return whether transparent color is included in list 
    bool isCustomItems() const; // Return whether list has been modified manually(via Add, Insert, Delete, Clear methods) 

    bool setStandardColors(const bool value); // Set whether standard colors are included in list 
    bool setExtendedColors(const bool value); // Set whether extended colors are included in list 
    bool setNoneColor(const bool value); // Set whether transparent color is included in list 

    bool Add(const Color &color, const String &caption); // Add color 
    bool Add(const CColor &color); // Add color 
    bool Insert(const Color &color, const String &caption, const int before); // Insert color before specified one 
    bool Insert(const CColor &color, const int before); // Insert color before specified one 
    bool Delete(const String &caption); // Delete by color name 
    bool Delete(const CColor &color); // Delete by color value 
};
Namespace: nitisa::standard
Include: Standard/Controls/ColorBox/ColorBox.h