Represents a common dialog box that displays input box.
- Header
#include <xtd/forms/input_box>
- Namespace
- xtd::forms
- Library
- xtd.forms
- Appearance
| Windows | macOS | Gnome |
| Light |
|
|
|
| Dark |
|
|
|
- Examples
- The following code example demonstrates the use of input_box dialog.
#include <xtd/xtd>
namespace input_box_example {
class form1 :
public form {
public:
form1() {
text(
"Input box example");
controls().add_range({
button1, label1});
button1.text("Text...");
auto value = label1.text();
if (input_box::show(value, *this, "Message text", "Caption text") == dialog_result::ok)
label1.text(value);
};
label1.location({10, 50});
label1.auto_size(true);
label1.text("Default value");
}
private:
};
}
auto main() -> int {
application::run(input_box_example::form1 {});
}
#define delegate_
The declaration of a delegate type is similar to a method signature. It has a return value and any nu...
Definition delegate.hpp:932
xtd::forms::style_sheets::control label
The label data allows you to specify the box of a label control.
Definition label.hpp:25
xtd::forms::style_sheets::control button
The buttton data allows you to specify the box of a button control.
Definition button.hpp:25
Contains classes that represent ASCII and Unicode character encodings; abstract base classes for conv...
Definition basic_string_builder.hpp:17
|
| static xtd::forms::dialog_result | show (xtd::string &value, const xtd::forms::iwin32_window &owner) |
| | Displays an input box in front of the specified window. The input box displays a text value.
|
| static xtd::forms::dialog_result | show (xtd::string &value, const xtd::forms::iwin32_window &owner, const xtd::string &text) |
| | Displays an input box in front of the specified window. The input box displays a input text value with specified invite message text.
|
| static xtd::forms::dialog_result | show (xtd::string &value, const xtd::forms::iwin32_window &owner, const xtd::string &text, const xtd::string &caption) |
| | Displays an input box in front of the specified window. The input box displays a input text value with specified invite message text and caption title.
|
| static xtd::forms::dialog_result | show (xtd::string &value, const xtd::forms::iwin32_window &owner, const xtd::string &text, const xtd::string &caption, xtd::forms::input_box_style style) |
| | Displays an input box in front of the specified window. The input box displays a input text value with specified invite message text, caption title and input box style.
|
| static xtd::forms::dialog_result | show (xtd::string &value, const xtd::forms::iwin32_window &owner, const xtd::string &text, const xtd::string &caption, xtd::forms::input_box_style style, xtd::forms::character_casing casing) |
| | Displays an input box in front of the specified window. The input box displays a input text value with specified invite message text, caption title, input box style and character casing.
|
| static xtd::forms::dialog_result | show (xtd::string &value, const xtd::forms::iwin32_window &owner, const xtd::string &text, const xtd::string &caption, xtd::forms::input_box_style style, xtd::forms::character_casing casing, bool word_wrap) |
| | Displays an input box in front of the specified window. The input box displays a input text value with specified invite message text, caption title, input box style, character casing and word_wrap.
|
| static xtd::forms::dialog_result | show (xtd::string &value) |
| | Displays an input box. The input box displays a text value.
|
| static xtd::forms::dialog_result | show (xtd::string &value, const xtd::string &text) |
| | Displays an input box. The input box displays a input text value with specified invite message text.
|
| static xtd::forms::dialog_result | show (xtd::string &value, const xtd::string &text, const xtd::string &caption) |
| | Displays an input box. The input box displays a input text value with specified invite message text and caption title.
|
| static xtd::forms::dialog_result | show (xtd::string &value, const xtd::string &text, const xtd::string &caption, xtd::forms::input_box_style style) |
| | Displays an input box. The input box displays a input text value with specified invite message text, caption title and input box style.
|
| static xtd::forms::dialog_result | show (xtd::string &value, const xtd::string &text, const xtd::string &caption, xtd::forms::input_box_style style, xtd::forms::character_casing casing) |
| | Displays an input box. The input box displays a input text value with specified invite message text, caption title, input box style and character casing.
|
| static xtd::forms::dialog_result | show (xtd::string &value, const xtd::string &text, const xtd::string &caption, xtd::forms::input_box_style style, xtd::forms::character_casing casing, bool word_wrap) |
| | Displays an input box. The input box displays a input text value with specified invite message text, caption title, input box style, character casing and word_wrap.
|