diff --git a/include/nana/gui/widgets/listbox.hpp b/include/nana/gui/widgets/listbox.hpp index 6215d276..a4f3e91c 100644 --- a/include/nana/gui/widgets/listbox.hpp +++ b/include/nana/gui/widgets/listbox.hpp @@ -987,9 +987,13 @@ namespace nana cat_proxy(essence*, size_type pos) noexcept; cat_proxy(essence*, category_t*) noexcept; - /// Append an item at abs end of the category, set_value determines whether assign T object to the value of item. - template - item_proxy append(T&& t, bool set_value = false) + /// Append an item at the end of this category using the oresolver to generate the texts to be put in each column. + /// + /// First you have to make sure there is an overload of the operator<<() of the oresolver for the type of the object used here + /// If a listbox have a model set, try call append_model instead. + template + item_proxy append( T&& t, ///< Value used by the resolver to generate the texts to be put in each column of the item + bool set_value = false) ///< determines whether to set the object as the value of this item. { oresolver ores(ess_); @@ -1039,7 +1043,7 @@ namespace nana model_guard model(); - /// Appends one item at the end of this category with the specifies text in the column fields + /// Appends one item at the end of this category with the specifies texts in the column fields void append(std::initializer_list texts_utf8); void append(std::initializer_list texts);