kosenko / ui

Boost.UI library
272 stars 20 forks source link

static box sizers support #5

Closed devsaider closed 6 years ago

devsaider commented 6 years ago

I have no idea how to implement such thing without breaking a lot of code. Help please

kosenko commented 6 years ago

You can use combination of group_box and vbox/hbox:

    ui::dialog dlg("Hello, Boost.UI!");

    ui::group_box gb(dlg, "group_box");
    ui::hbox(gb)
        << ui::button(gb, "button 1")
        << ui::button(gb, "button 2")
        ;
    dlg.show_modal();