Nana C++ Library. Reference for users.
What we need to use nana
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
example_listbox.cpp
#include <nana/gui.hpp>
#include <nana/gui/widgets/listbox.hpp>
#include <iostream>
int main()
{
using namespace nana;
form fm;
listbox lb(fm, nana::rectangle(10, 10, 280, 120));
lb.append_header("Header", 200);
// this will attemp to use
// item_proxy cat_proxy::append (T &&t, bool set_value=false)
// to add a value any of char[4] = "int"
lb.at(0).append({"int"});
lb.at(0).append({"double"});
lb.anyobj(0, 0, 10);
lb.anyobj(0, 1, 0.1);
int * pi = lb.anyobj<int>(0, 0); // it returns a nullptr if there is not an int object specified.
std::cout << "Index: (0,0) -> int value: " << *pi << std::endl;
double * pd = lb.anyobj<double>(0, 1); // it returns a nullptr if there is not an double object specified.
std::cout << "Index: (0,1) -> double value: " << *pd;
fm.show();
exec();
}