CDropDown


Implements DropDown control.

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

class CDropDown :public virtual IDropDown, public CCustomDropDown
{
public:
    CDropDown();
    CDropDown(IForm *parent);
    CDropDown(IControl *parent);

    IListItemLabel *getItem(const int index) override;
    String getText() override;
    int getActiveIndex() override;

    bool setText(const String &value) override;
    bool setActiveIndex(const int value) override;

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

    bool Add(const String &caption); // Add item 
    bool Insert(const String &caption, const int before); // Insert item before specified one 
};
Namespace: nitisa::standard
Include: Standard/Controls/DropDown/DropDown.h