#define TRACE
#include <xtd/forms/application>
#include <xtd/forms/button>
#include <xtd/forms/form>
#include <xtd/ctrace>
class form1 :
public form {
public:
form1() {
*this << button_full_screen << button_maximize << button_minimize << button_normal;
text(
"Window state example");
resize += [&] {
};
client_size({410, 200});
button_full_screen.location({10, 10});
button_full_screen.text("Full screen");
button_full_screen.width(90);
button_full_screen.click += [&] {
};
button_maximize.location({110, 10});
button_maximize.text("Maximize");
button_maximize.width(90);
button_maximize.click += [&] {
};
button_normal.location({210, 10});
button_normal.text("Normal");
button_normal.width(90);
button_normal.click += [&] {
};
button_minimize.location({310, 10});
button_minimize.text("Minimize");
button_minimize.width(90);
button_minimize.click += [&] {
};
}
private:
};
auto main() -> int {
}
static xtd::string new_line() noexcept
Gets the newline string defined for this environment.
std::ostream ctrace(nullptr)
Provides an std::ostream for xtd::diagnostics::trace.
size_t size
Represents a size of any object in bytes.
Definition size.hpp:23
Contains classes that represent ASCII and Unicode character encodings; abstract base classes for conv...
Definition basic_string_builder.hpp:16
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8