#include <xtd/drawing/color_translator>
#include <xtd/drawing/system_images>
#include <xtd/forms/about_dialog>
#include <xtd/forms/application>
#include <xtd/forms/button>
#include <xtd/forms/form>
#include <xtd/forms/label>
#include <xtd/forms/tab_page>
class form1 :
public form {
public:
form1() {
text(
"About dialog with user pages example");
dialog.name("User about dialog");
dialog.version("1.0");
dialog.long_version("1.0.0");
dialog.description("About dialog with user pages.");
dialog.copyright("Copyright (c) 2024 Gammasoft.\nAll rights reserved.");
dialog.website("https://gammasoft71.wixsite.com/gammasoft");
dialog.website_label("gammasoft website");
dialog.user_tab_pages().push_back_range({user_tab_page1, user_tab_page2});
dialog.show(*this);
};
}
private:
tab_page user_tab_page1 = tab_page::create(
"Dodger Blue");
tab_page user_tab_page2 = tab_page::create(
"Spring Green");
};
auto main() -> int {
}
static xtd::string to_rgb(const xtd::drawing::color &value) noexcept
Translates the specified xtd::drawing::color structure to an RGB string color representation.
static xtd::drawing::color from_name(const xtd::string &name) noexcept
Creates a xtd::drawing::color class from the specified name of a predefined color.
static const xtd::drawing::color black
Gets a system-defined color that has an ARGB value of 0xFF000000. This field is constant.
Definition color.hpp:80
static xtd::drawing::image from_name(const xtd::string &name)
Gets system image from specified name.
Represents a single tab page in a tab_control.
Definition tab_page.hpp:33
control & text(const xtd::string &text) override
Sets the text associated with this control.
The xtd::drawing::text namespace provides advanced GDI+ typography functionality.
Definition font_collection.hpp:14
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition actions_system_images.hpp:10
Stores an ordered pair of integers, which specify a height and width.
Definition size.hpp:31