CListBox


Implements ListBox control.

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

class CListBox :public virtual IListBox, public CCustomListBox
{
protected:
    FCompare getCompareItems() override;
    int Search(const String &search) override;
public:
    CListBox();
    CListBox(IForm *parent);
    CListBox(IControl *parent);

    bool isAcceptItem(IListItem *item) override;
    IListItemLabel *getItem(const int index) override;
    int getActiveIndex() 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 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/ListBox/ListBox.h