#include <xtd/forms/application>
#include <xtd/forms/form>
#include <xtd/forms/lcd_label>
#include <xtd/forms/numeric_up_down>
class form1 :
public form {
public:
form1() {
text("Lcd label example");
lcd_label1.location({10, 50});
lcd_label1.parent(*this);
lcd_label1.segment_style(segment_style::modern);
lcd_label1.auto_size(true);
numeric_up_down1.location({10, 10});
numeric_up_down1.parent(*this);
numeric_up_down1.set_range(0, 15000000);
numeric_up_down1.increment(0.01);
numeric_up_down1.decimal_place(2);
numeric_up_down1.width(180);
numeric_up_down1.value_changed += [&] {
lcd_label1.text(string::format("{,11:F2}", numeric_up_down1.value()));
};
numeric_up_down1.value(12345678.90);
}
private:
};
auto main() -> int {
application::run(form1 {});
}
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10