The following code example demonstrate the use of input_dialog dialog with multiline.
- Windows
-
- macOS
-
- Gnome
-
#include <xtd/xtd>
namespace examples {
class form1 : public form {
public:
form1() {
auto_scroll(true);
text("Input dialog multiline example");
controls().push_back_range({
button1, label1});
input_dialog input_dialog;
input_dialog.multiline(true);
input_dialog.word_wrap(false);
input_dialog.text("Enter lines");
input_dialog.value(label1.text());
label1.text(input_dialog.value());
};
label1.location({10, 50});
label1.auto_size(true);
label1.text("line 1\nline 2");
}
private:
label label1;
};
}
int main() {
}
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17