Skip to content

propertygrid

besh81 edited this page Mar 8, 2019 · 10 revisions

nana::propertygrid

Usage

// include the header
#include "propertygrid.h"
#include "pgitems.h"
...
// declare the control
nana::propertygrid propgrid;
...
// use the control
auto cat = propgrid.append("category name"); // append category
cat.append(nana::propertygrid::pgitem_ptr(new nana::pg_string_uint("label1", "100"))); // append unsigned int property
cat.append(nana::propertygrid::pgitem_ptr(new nana::pg_color("color1", "255,0,0"))); // append color property
...
// connect the events
propgrid.events().property_changed([](const nana::arg_propertygrid& arg)
{
	...
});
propertygrid
Clone this wiki locally