#include <xtd/xtd>
namespace tutorial {
public:
panel_right() {
controls().push_back(label_);
size({150, 100});
label_.auto_size(true);
label_.location({65, 45});
label_.text("0");
}
};
public:
panel_left() {
controls().push_back_range({button_plus_, button_minus_});
size({150, 100});
button_plus_.auto_repeat(true);
button_plus_.location({30, 10});
button_plus_.text("+");
button_plus_.click += [&] {
count++;
control& form = parent().value().get();
};
button_minus_.auto_repeat(true);
button_minus_.location({30, 60});
button_minus_.text("-");
button_minus_.click += [&] {
count--;
control& form = parent().value().get();
};
}
int count = 0;
};
public:
communicate() {
client_size({300, 100});
controls().push_back_range({panel_right_, panel_left_});
text("communicate");
}
static auto main() {
}
panel_left panel_left_;
panel_right panel_right_;
};
}
#define startup_(main_method)
Defines the entry point to be called when the application loads. Generally this is set either to the ...
Definition startup.hpp:175