#include <xtd/forms/application>
#include <xtd/forms/button>
#include <xtd/forms/font_box>
#include <xtd/forms/form>
#include <xtd/forms/message_box>
#include <xtd/forms/label>
class form1 :
public form {
public:
form1() {
text(
"Font box example");
client_size({220, 160});
controls().push_back_range({button_font, button_font_and_color});
button_font.parent(*this)
.location({10, 10})
.size({200, 45})
.click += [this] {
};
button_font_and_color.parent(*this)
.location({10, 60})
.
text(
"Select a font and a font color")
.size({200, 45})
.click += [] {
};
}
private:
};
auto main() -> int {
}
Represents an ARGB (alpha, red, green, blue) color.
Definition color.hpp:46
static const xtd::drawing::color blue
Gets a system-defined color that has an ARGB value of 0xFF0000FF. This field is constant.
Definition color.hpp:86
static font_family generic_sans_serif() noexcept
Gets a generic sans serif font_family.
Defines a particular format for text, including font face, size, and style attributes....
Definition font.hpp:45
static xtd::drawing::font default_font()
Gets the default font that applications can use for dialog boxes and forms.
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition actions_system_images.hpp:10
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