#include <xtd/xtd>
class form1 : public form {
public:
static auto main() {
application::run(form1 {});
}
form1() {
text(
"Form with manual assembly info");
controls().add_range({company, product,
version, company_name, product_name, product_version});
client_size({350, 105});
company.auto_size(true);
company.text("Company name");
company.location({10, 10});
company.text_align(content_alignment::middle_left);
product.auto_size(true);
product.text("Product name");
product.location({10, 40});
product.text_align(content_alignment::middle_left);
version.auto_size(true);
version.text("Product version");
version.location({10, 70});
version.text_align(content_alignment::middle_left);
company_name.text(application::company_name());
company_name.read_only(true);
company_name.location({120, 10});
company_name.width(220);
product_name.text(application::product_name());
product_name.read_only(true);
product_name.location({120, 40});
product_name.width(220);
product_version.text(application::product_version());
product_version.read_only(true);
product_version.location({120, 70});
product_version.width(220);
}
private:
};
Represents the version number of an assembly, operating system, or the xtd. This class cannot be inhe...
Definition version.hpp:115
@ text_box
The system-defined color of the accent color (macos specific. On other platform is same as window).
Definition known_color.hpp:501
#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:284
xtd::forms::style_sheets::control label
The label data allows you to specify the box of a label control.
Definition label.hpp:25
Contains classes that represent ASCII and Unicode character encodings; abstract base classes for conv...
Definition basic_string_builder.hpp:17
#pragma region xtd generated code
#include <xtd/reflection/assembly_info>
#pragma endregion
#define assembly_product_(product)
Creates the assembly product information. Must be called once in your application.
Definition assembly_product_attribute.hpp:103
#define assembly_title_(title)
Creates the assembly title information. Must be called once in your application.
Definition assembly_title_attribute.hpp:103
#define assembly_description_(description)
Creates the assembly description information. Must be called once in your application.
Definition assembly_description_attribute.hpp:107
#define assembly_culture_(culture)
Creates the assembly culture information. Must be called once in your application.
Definition assembly_culture_attribute.hpp:103
#define assembly_version_(version)
Creates the assembly version information. Must be called once in your application.
Definition assembly_version_attribute.hpp:108
#define assembly_trademark_(trademark)
Creates the assembly trademark information. Must be called once in your application.
Definition assembly_trademark_attribute.hpp:101
#define assembly_company_(company)
Creates the assembly company information. Must be called once in your application.
Definition assembly_company_attribute.hpp:103
#define assembly_configuration_(configuration)
Creates the assembly configuration information. Must be called once in your application.
Definition assembly_configuration_attribute.hpp:103
#define assembly_copyright_(copyright)
Creates the assembly copoyright information. Must be called once in your application.
Definition assembly_copyright_attribute.hpp:103