#include <xtd/forms/application>
#include <xtd/forms/button>
#include <xtd/forms/form>
#include <xtd/forms/label>
auto main() -> int {
auto button1_clicked = 0, button2_clicked = 0;
};
form1.controls()[
"label2"].value().get().text(
xtd::string::format(
"Button 2 clicked {} times", ++button2_clicked));
};
form1.controls().emplace<
xtd::forms::label>(form1.controls().end(),
"Button 1 clicked 0 times",
point {50, 200},
size {200, 23},
"label1");
}
Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional ...
Definition point.hpp:54
Stores an ordered pair of integers, which specify a height and width.
Definition size.hpp:31
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition actions_system_images.hpp:11