improve listbox

add single selection
fix item display issue when it is checkable
This commit is contained in:
cnjinhao
2015-02-02 09:49:17 +08:00
parent 46f8182c50
commit 0dc50058cb
2 changed files with 346 additions and 158 deletions

View File

@@ -552,6 +552,9 @@ By \a clicking on a header the list get \a reordered, first up, and then down al
size_type size_categ() const; ///<Get the number of categories
size_type size_item() const; ///<The number of items in the default category
size_type size_item(size_type cat) const; ///<The number of items in category "cat"
void enable_single(bool for_selection, bool category_limited);
void disable_single(bool for_selection);
private:
drawerbase::listbox::essence_t & _m_ess() const;
nana::any* _m_anyobj(size_type cat, size_type index, bool allocate_if_empty) const;