Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Class text_box

boost::ui::text_box — Multi-line text editor widget.

Synopsis

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


class text_box : public boost::ui::text_box_base {
public:
  // construct/copy/destruct
  explicit text_box(widget &, const uistring & = uistring());
  text_box();
};

Description

Usage example:

ui::string_box string_box = ui::string_box(parent, "Initial text");
string_box.on_edit([&]
{
    ui::log::info() << "Edited text: " << string_box.text();
});

See Also:

Text box (Wikipedia)

text_box public construct/copy/destruct

  1. explicit text_box(widget & parent, const uistring & text = uistring());
    Creates widget.

    Parameters:

    parent

    Parent widget

    text

    Initial text in the editor

  2. text_box();

PrevUpHomeNext