#include <xtd/forms/application>
#include <xtd/forms/button>
#include <xtd/forms/form>
#include <xtd/forms/input_box>
#include <xtd/forms/label>
namespace input_box_example {
class form1 :
public form {
public:
form1() {
text(
"Input box example");
controls().push_back_range({
button1, label1});
auto value = label1.text();
label1.text(value);
};
label1.location({10, 50});
label1.auto_size(true);
label1.text("Default value");
}
private:
};
}
auto main() -> int {
}