Table of Contents

Enum ControlStyles

Namespace
Alternet.UI
Assembly
Alternet.UI.Interfaces.dll

Specifies the style and behavior of a control.

[Flags]
public enum ControlStyles

Fields

AllPaintingInWmPaint = 8192

If true, the control ignores the window message erase-background to reduce flicker. This style should only be applied if the UserPaint bit is set to true.

CacheText = 16384

If true, the control keeps a copy of the text rather than getting it from the native control each time it is needed. This style defaults to false. This behavior improves performance, but makes it difficult to keep the text synchronized.

ContainerControl = 1

If true, the control is a container-like control.

EnableNotifyMessage = 32768

If true, the notify-message method is called for every message sent to the control's.

FixedHeight = 64

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.

FixedWidth = 32

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.

Opaque = 4

If true, the control is drawn opaque and the background is not painted.

OptimizedDoubleBuffer = 131072

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 AllPaintingInWmPaint to true.

ResizeRedraw = 16

If true, the control is redrawn when it is resized.

Selectable = 512

If true, the control can receive focus.

StandardClick = 256

If true, the control implements the standard click behavior.

StandardDoubleClick = 4096

If true, the control implements the standard double-click behavior. This style is ignored if the StandardClick bit is not set to true.

SupportsTransparentBackColor = 2048

If true, the control accepts a background color 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.

UseTextForAccessibility = 262144

Specifies that the value of the control's Text property, if set, determines the control's default Active Accessibility name and shortcut key.

UserMouse = 1024

If true, the control does its own mouse processing, and mouse events are not handled by the operating system.

UserPaint = 2

If true, the control paints itself rather than the operating system doing so. If false, the paint event is not raised. This style only applies to classes derived from Control.

Remarks

This enumeration supports a bitwise combination of its member values.