Nana C++ Library. Reference for users.
What we need to use nana
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
modal_form.cpp
#include <nana/gui.hpp>
#include <nana/gui/widgets/button.hpp>
#include <iostream>
void foo(const nana::arg_click& ei)
{
using namespace nana;
fm.caption(("I am a modal form"));
std::cout<<"Block execution till modal form is closed"<<std::endl;
std::cout<<"modal form is closed"<<std::endl;
}
int main()
{
using namespace nana;
form fm;
fm.caption(("Click me to open a modal form"));
fm.events().click(foo);
fm.show();
exec();
}