[archived content]

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_CONTROLThe control is designed to contain child controls.
OPAQUEThe control's background is not painted; onPaintBackground? is suppressed and onPaint? is expected to paint the whole control.
RESIZE_REDRAWIf the control is resized, it is redrawn automatically.
SELECTABLEThe control is able to be selected.
STANDARD_CLICKThe control processes single clicks; onClick? and click are raised.
ALL_PAINTING_IN_WM_PAINTWindows: All of the control's painting is done from WM_PAINT; WM_PAINT is used instead of WM_ERASEBKGND.
CACHE_TEXTThe control's text is cached instead of being fetched from the handle; not guaranteed to be kept synchronous, such as with TextBox?.
WANT_TAB_KEYThe 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

Page last modified on January 30, 2008, at 06:55 PM