#include <xtd/forms/application>
#include <xtd/forms/button>
#include <xtd/forms/form>
#include <xtd/forms/input_dialog>
#include <xtd/forms/label>
namespace input_dialog_multiline_example {
class form1 :
public form {
public:
form1() {
auto_scroll(true);
text("Input dialog multiline example");
controls().push_back_range({button1, label1});
button1.location({10, 10});
button1.auto_size(true);
button1.text("Lines...");
button1.click += [&] {
};
label1.location({10, 50});
label1.auto_size(true);
label1.text("line 1\nline 2");
}
private:
};
}
auto main() -> int {
application::run(input_dialog_multiline_example::form1 {});
}
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10