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