Nana C++ Library. Reference for users.
What we need to use nana
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
window-dragger.cpp

This example sets btn and adherent to be triggers, and dragger will move the form and adherent when the user is dragging the trigger widgets.

#include <nana/gui.hpp>
#include <nana/gui/widgets/button.hpp>
#include <nana/gui/dragger.hpp>
int main()
{
using namespace nana;
form fm;
fm.caption(("Main Nana Window - target"));
button btn(fm, nana::rectangle(10, 10, 100, 20));
btn.caption(("Drag Me"));
form & adherent = form_loader<form>()();
adherent.caption(("target & trigger"));
adherent.show();
dragger dg;
dg.target(fm);
dg.target(adherent);
dg.trigger(btn);
dg.trigger(adherent);
fm.show();
exec();
}