xtd 0.2.0
Loading...
Searching...
No Matches
control_styles.h
Go to the documentation of this file.
1
4#pragma once
5#include <xtd/enum>
6
8namespace xtd {
10 namespace forms {
33 enum class control_styles {
35 none = 0,
39 user_paint = 0b10,
41 opaque = 0b100,
43 resize_redraw = 0b10000,
45 fixed_width = 0b100000,
47 fixed_height = 0b1000000,
49 standard_click = 0b100000000,
51 selectable = 0b1000000000,
53 user_mouse = 0b10000000000,
55 supports_transparent_back_color = 0b100000000000,
57 standard_double_click = 0b1000000000000,
59 all_painting_in_wm_paint = 0b10000000000000,
61 cache_text = 0b100000000000000,
63 enable_notify_message = 0b1000000000000000,
65 double_buffer = 0b10000000000000000,
67 optimized_double_buffer = 0b100000000000000000,
69 use_text_for_accessibility = 0b1000000000000000000,
70 };
71 }
72}
73
75flags_attribute_(xtd::forms, control_styles);
76
79};
Provides focus-management functionality for controls that can function as a container for other contr...
Definition container_control.h:25
#define flags_attribute_(namespace_name, enum_type)
Provides the set attribute struct for enumerations helper.
Definition flags_attribute.h:34
std::vector< xtd::collections::generic::key_value_pair< enum_t, xtd::string > > enum_collection
Represents a pair of an enum_t value and a string of an enum of type enum_t.
Definition enum_collection.h:22
control_styles
Specifies the style and behavior of a control.
Definition control_styles.h:33
@ container_control
If true, the control is a container-like control.
@ user_paint
If true, the control paints itself rather than the operating system doing so. If false,...
@ enable_notify_message
If true, the on_notify_message(message&) method is called for every message sent to the control's wnd...
@ optimized_double_buffer
If true, the control is first drawn to a buffer rather than directly to the screen,...
@ use_text_for_accessibility
Specifies that the value of the control's text property, if set, determines the control's default act...
@ user_mouse
If true, the control does its own mouse processing, and mouse events are not handled by the operating...
@ fixed_height
If true, the control has a fixed height when auto-scaled. For example, if a layout operation attempts...
@ double_buffer
If true, drawing is performed in a buffer, and after it completes, the result is output to the screen...
@ fixed_width
If true, the control has a fixed width when auto-scaled. For example, if a layout operation attempts ...
@ cache_text
If true, the control keeps a copy of the text rather than getting it from the handle each time it is ...
@ opaque
If true, the control is drawn opaque and the background is not painted.
@ selectable
If true, the control can receive focus.
@ all_painting_in_wm_paint
If true, the control ignores the window message WM_ERASEBKGND to reduce flicker. This style should on...
@ resize_redraw
If true, the control is redrawn when it is resized.
@ standard_double_click
If true, the control implements the standard double_click behavior. This style is ignored if the stan...
@ standard_click
If true, the control implements the standard click behavior.
@ supports_transparent_back_color
If true, the control accepts a BackColor with an alpha component of less than 255 to simulate transpa...
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.h:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Provides the registration struct for enumerations.
Definition enum_register.h:38