xtd 0.2.0
Loading...
Searching...
No Matches
about_box.cpp

demonstrates the use of xtd::forms::about_box dialog.

Windows

macOS

Gnome

#include "../resources/gammasoft_64x64.xpm"
#include <xtd/xtd>
class form1 : public form {
public:
form1() {
text("About box example");
controls().push_back(button1);
button1.location({10, 10});
button1.text("About...");
button1.click += delegate_ {
about_box::show("About box description.", "About box", xtd::drawing::image::from_xpm_data(gammasoft_64x64_xpm), "1.0", "1.0.0", "Copyright (c) 2024 Gammasoft.\nAll rights reserved.", "https://gammasoft71.github.io", "Gammasoft");
};
}
private:
button button1;
};
auto main() -> int {
application::run(form1 {});
}
static bitmap from_xpm_data(const char *const *bits)
Creates an xtd::drawing::image from the specified data pointer.
#define delegate_
The declaration of a delegate type is similar to a method signature. It has a return value and any nu...
Definition delegate.hpp:900