kosenko / ui

Boost.UI library
266 stars 18 forks source link

static box sizers support #5

Closed devsaider closed 5 years ago

devsaider commented 5 years ago

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

kosenko commented 5 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();