Home | Libraries | People | FAQ | More |
boost::ui::dialog — Top level widget that hosts other widgets.
// In header: <boost/ui/dialog.hpp> class dialog : public boost::ui::window { public: // construct/copy/destruct explicit dialog(const uistring &); dialog(); };
Usage example:
class my_dialog : public ui::dialog { public: my_dialog() : ui::dialog("Dialog example") { ui::button(*this, "&Close this dialog") .on_press(&my_dialog::on_close, this); } private: void on_close() { close(); } }; void run_dialog() { my_dialog().show_modal(); }
See Also:
dialog
public
construct/copy/destructexplicit dialog(const uistring & title);Creates dialog with the title.
dialog();