Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Class dialog

boost::ui::dialog — Top level widget that hosts other widgets.

Synopsis

// In header: <boost/ui/dialog.hpp>


class dialog : public boost::ui::window {
public:
  // construct/copy/destruct
  explicit dialog(const uistring &);
  dialog();
};

Description

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 (Wikipedia)

dialog public construct/copy/destruct

  1. explicit dialog(const uistring & title);
    Creates dialog with the title.
  2. dialog();

PrevUpHomeNext