Represents a common dialog box that displays available colors along with controls that enable the user to define custom colors.
- Header
#include <xtd/forms/color_box>
- Namespace
- xtd::forms
- Library
- xtd.forms
- Appearance
| Windows | macOS | Gnome |
Light |
html dialog_color_dialog_m.png html dialog_color_dialog_g.png
|
Dark |
html dialog_color_dialog_md.png html dialog_color_dialog_gd.png
|
- Examples
- The following code example demonstrates the use of color_box dialog.
#include <xtd/forms/application>
#include <xtd/forms/button>
#include <xtd/forms/color_box>
#include <xtd/forms/form>
class form1 :
public form {
public:
form1() {
text(
"Color box example");
auto color = back_color();
};
}
private:
};
auto main()->int {
}
|
static xtd::forms::dialog_result | show (xtd::drawing::color &color, const xtd::forms::iwin32_window &owner) |
| Displays a color box in front of the specified window. The color box displays a color. More...
|
|
static xtd::forms::dialog_result | show (xtd::drawing::color &color, const xtd::forms::iwin32_window &owner, const xtd::ustring &title) |
| Displays a color box in front of the specified window. The color box displays a color. More...
|
|
static xtd::forms::dialog_result | show (xtd::drawing::color &color, const xtd::forms::iwin32_window &owner, const xtd::ustring &title, color_box_styles styles) |
| Displays a color box in front of the specified window. The color box displays a color with styles. More...
|
|
static xtd::forms::dialog_result | show (xtd::drawing::color &color, const xtd::forms::iwin32_window &owner, const xtd::ustring &title, color_box_styles styles, const std::vector< xtd::drawing::color > &custom_colors) |
| Displays a color box in front of the specified window. The color box displays a color with styles, and custom colors. More...
|
|
static xtd::forms::dialog_result | show (xtd::drawing::color &color) |
| Displays a color box. The color box displays a color. More...
|
|
static xtd::forms::dialog_result | show (xtd::drawing::color &color, const xtd::ustring &title) |
| Displays a color box. The color box displays a color. More...
|
|
static xtd::forms::dialog_result | show (xtd::drawing::color &color, const xtd::ustring &title, color_box_styles styles) |
| Displays a color box. The color box displays a color with styles. More...
|
|
static xtd::forms::dialog_result | show (xtd::drawing::color &color, const xtd::ustring &title, color_box_styles styles, const std::vector< xtd::drawing::color > &custom_colors) |
| Displays a color box. The color box displays a color with styles, and custom colors. More...
|
|