#include <xtd/forms/application>
#include <xtd/forms/form>
#include <xtd/forms/label>
#include <xtd/forms/text_box>
#include <xtd/startup>
class form1 :
public form {
public:
static auto main() {
application::run(form1 {});
}
form1() {
text(
"Form with manual assembly info");
controls().push_back_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.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 a standard Windows text box.
Definition text_box.h:31
Represents the version number of an assembly, operating system, or the xtd. This class cannot be inhe...
Definition version.h:114
#define startup_(main_method)
Defines the entry point to be called when the application loads. Generally this is set either to the ...
Definition startup.h:175
#pragma region xtd generated code
#include <xtd/reflection/assembly_info>
#pragma endregion
#define assembly_product_(product)
Sets the assembly product information. Must be called once in your application.
Definition assembly_product_attribute.h:74
#define assembly_title_(title)
Sets the assembly title information. Must be called once in your application.
Definition assembly_title_attribute.h:74
#define assembly_description_(description)
Sets the assembly description information. Must be called once in your application.
Definition assembly_description_attribute.h:78
#define assembly_culture_(culture)
Sets the assembly culture information. Must be called once in your application.
Definition assembly_culture_attribute.h:76
#define assembly_version_(version)
Sets the assembly version information. Must be called once in your application.
Definition assembly_version_attribute.h:79
#define assembly_guid_(guid)
Sets the assembly guid information. Must be called once in your application.
Definition assembly_guid_attribute.h:74
#define assembly_trademark_(trademark)
Sets the assembly trademark information. Must be called once in your application.
Definition assembly_trademark_attribute.h:72
#define assembly_company_(company)
Sets the assembly company information. Must be called once in your application.
Definition assembly_company_attribute.h:76
#define assembly_configuration_(configuration)
Sets the assembly configuration information. Must be called once in your application.
Definition assembly_configuration_attribute.h:76
#define assembly_copyright_(copyright)
Sets the assembly copoyright information. Must be called once in your application.
Definition assembly_copyright_attribute.h:76