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 {
31 enum class control_styles {
33 none = 0,
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
73flags_attribute_(xtd::forms, control_styles);
74
77};
Provides focus-management functionality for controls that can function as a container for other contr...
Definition container_control.h:23
#define flags_attribute_(namespace_name, enum_type)
Provides the set attribute struct for enumerations helper.
Definition flags_attribute.h:34
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
control_styles
Specifies the style and behavior of a control.
Definition control_styles.h:31
@ 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:36