diff --git a/include/nana/gui/widgets/listbox.hpp b/include/nana/gui/widgets/listbox.hpp index e29cd1f4..844f8229 100644 --- a/include/nana/gui/widgets/listbox.hpp +++ b/include/nana/gui/widgets/listbox.hpp @@ -1250,8 +1250,9 @@ By \a clicking on one header the list get \a reordered, first up, and then down } return false; } - listbox.anyobj(0, 0, 10); //the type of customer's object is int. - listbox.anyobj(0, 0, 20); + auto cat = listbox.at(0); + cat.at(0).value(10); //10 is custom data. + cat.at(1).value(20); //20 is custom data. 5. listbox is a widget_object, with template parameters drawerbase::listbox::trigger and drawerbase::listbox::scheme amon others. That means that listbox have a member trigger_ constructed first and accecible with get_drawer_trigger() and