|
strong |
Specifies the style and behavior of a control.
Enumerator | |
---|---|
none | No control style.. |
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, the xtd::forms::control::paint event is not raised. This style only applies to classes derived from control. |
opaque | If true, the control is drawn opaque and the background is not painted. |
resize_redraw | If true, the control is redrawn when it is resized. |
fixed_width | If true, the control has a fixed width when auto-scaled. For example, if a layout operation attempts to rescale the control to accommodate a new font, the control's width remains unchanged. |
fixed_height | If true, the control has a fixed height when auto-scaled. For example, if a layout operation attempts to rescale the control to accommodate a new font, the control's height remains unchanged. |
standard_click | If true, the control implements the standard click behavior. |
selectable | If true, the control can receive focus. |
user_mouse | If true, the control does its own mouse processing, and mouse events are not handled by the operating system. |
supports_transparent_back_color | If true, the control accepts a BackColor with an alpha component of less than 255 to simulate transparency. Transparency will be simulated only if the UserPaint bit is set to true and the parent control is derived from Control. |
standard_double_click | If true, the control implements the standard double_click behavior. This style is ignored if the standard_click bit is not set to true. |
all_painting_in_wm_paint | If true, the control ignores the window message WM_ERASEBKGND to reduce flicker. This style should only be applied if the user_paint bit is set to true. |
cache_text | If true, the control keeps a copy of the text rather than getting it from the handle each time it is needed. This style defaults to false. This behavior improves performance, but makes it difficult to keep the text synchronized. |
enable_notify_message | If true, the on_notify_message(message&) method is called for every message sent to the control's wnd_proc(message&). This style defaults to false. enable_notify_message does not work in partial trust. |
double_buffer | If true, drawing is performed in a buffer, and after it completes, the result is output to the screen. Double-buffering prevents flicker caused by the redrawing of the control. If you set double_buffer to true, you should also set user_paint and all_painting_in_wm_paint to true. |
optimized_double_buffer | 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. |
use_text_for_accessibility | Specifies that the value of the control's text property, if set, determines the control's default active accessibility name and shortcut key. |