ControlStyles enumeration
public enum
ControlStyles- NONE
- CONTAINER_CONTROL
- USER_PAINT
- OPAQUE
- RESIZE_REDRAW
- STANDARD_CLICK
- SELECTABLE
- USER_MOUSE
- STANDARD_DOUBLE_CLICK
- ALL_PAINTING_IN_WM_PAINT
- CACHE_TEXT
- WANT_TAB_KEY
Styles affecting the behavior of a Control.
CONTAINER_CONTROL | The control is designed to contain child controls. |
OPAQUE | The control's background is not painted; onPaintBackground? is suppressed and onPaint? is expected to paint the whole control. |
RESIZE_REDRAW | If the control is resized, it is redrawn automatically. |
SELECTABLE | The control is able to be selected. |
STANDARD_CLICK | The control processes single clicks; onClick? and click are raised. |
ALL_PAINTING_IN_WM_PAINT | Windows: All of the control's painting is done from WM_PAINT; WM_PAINT is used instead of WM_ERASEBKGND. |
CACHE_TEXT | The control's text is cached instead of being fetched from the handle; not guaranteed to be kept synchronous, such as with TextBox?. |
WANT_TAB_KEY | The control wants to process the tab key instead of using the tab key to move to the next control. |
Note: styles not documented in the above table are either deprecated or not implemented.
See also: Control.setStyle, Control.getStyle