The following code example demonstrate the use of input_dialog dialog.
#include <xtd/xtd>
namespace examples {
class form1 :
public form {
public:
form1() {
text("Input dialog example");
controls().push_back_range({button1, label1});
button1.location({10, 10});
button1.text("Text...");
button1.click += [&] {
};
label1.location({10, 50});
label1.auto_size(true);
label1.text("Default value");
}
private:
};
}
int main() {
application::run(examples::form1());
}
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition system_report.h:17