The following code example demonstrate the use of color_box dialog.
- Windows
-
- macOS
-
- Gnome
-
#include <xtd/xtd>
class form1 :
public form {
public:
form1() {
text("Color box example");
controls().push_back(button1);
button1.location({10, 10});
button1.text("Color...");
button1.click += [&] {
if (color_box::show(
color, *
this) == forms::dialog_result::ok)
};
}
private:
};
int main() {
application::run(form1());
}
Represents an ARGB (alpha, red, green, blue) color.
Definition: color.h:39
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition: bitmap.h:11
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17