Minimal sample
class my_frame : public ui::frame
{
public:
my_frame(const ui::uistring& title);
};
my_frame::my_frame(const ui::uistring& title)
: ui::frame(title)
{
menu_bar()
<< ( ui::menu("&File")
<< ui::menu::item("E&xit\tAlt-X")
.on_press(&my_frame::close, this)
)
<< ( ui::menu("&Help")
<< ui::menu::item("&About\tF1")
.on_press([]
{
ui::uiostringstream ss;
ss << "Welcome to Boost " << BOOST_VERSION / 100000
<< '.' << BOOST_VERSION / 100 % 1000
<< '.' << BOOST_VERSION % 100
<< "!\n"
<< "\n"
<< "This is the minimal Boost.UI sample\n"
<< "running under " << BOOST_PLATFORM << "."
;
})
)
;
status_bar().text("Welcome to Boost.UI!");
}
int ui_main()
{
my_frame frame("Minimal Boost.UI App");
frame.show_modal();
return 0;
}
int main(int argc, char* argv[])
{
}