Nana ++ Library An open-source C++ framework project The Nana Programmer's Guide  |
||||||||||||
nana::gui::gird Description The gird automatically lays out widgets in a gird. There is a form contains a button. #include<nana/gui/wvl.hpp> #include<nana/gui/widgets/button.hpp> #include<nana/gui/layout.hpp> int main() { using namespace nana::gui; form fm; button btn(fm); btn.caption(STR("Button")); gird gdobj(fm); gird * child_gird_a = gdobj.add(0, 0); //Create a child_gird_b, 80 pixels in width //10 pixels in blank between child_gird_a and child_gird_b. gird * child_gird_b = gdobj.add(10, 80); //Create a child_gird_c, 10 pixels in width gird * child_gird_c = gdobj.add(0, 10); //Lays out the button, 10 pixels blank off its top, 20 pixels in height. child_gird_b->push(btn, 10, 20); fm.show(); exec(); } Model of None Public base classes None Members
File nana/gui/layout.hpp Notes None. See also None. Move to The Nana Programmer's Guide Main Page |
||||||||||||