Sign in Join
FPDoc Onlineexperiment

TControlStyleType enumeration

In unit Controls

Enumerated type with values for features or behaviors for a control.

Declaration

pascal
TControlStyleType = (csAcceptsControls,csCaptureMouse,
 csDesignInteractive,csClickEvents,csFramed,
 csSetCaption,csOpaque,csDoubleClicks,
 csTripleClicks,csQuadClicks,csFixedWidth,
 csFixedHeight,csNoDesignVisible,csReplicatable,
 csNoStdEvents,csDisplayDragImage,csReflector,
 csActionClient,csMenuEvents,csNoFocus,
 csNeedsBorderPaint,csParentBackground,
 csDesignNoSmoothResize,csDesignFixedBounds,
 csHasDefaultAction,csHasCancelAction,
 csNoDesignSelectable,csOwnedChildrenNotSelectable,
 csAutoSize0x0,csAutoSizeKeepChildLeft,
 csAutoSizeKeepChildTop,csAutoSizeIgnoreByParent,
 csRequiresKeyboardInput)

Description

TControlStyleType is an enumeration type with values that represent features or behaviors that can be enabled or disabled in a control. Zero or more values from TControlStyleType can be stored in the TControlStyle set type used to implement the ControlStyle property in TControl.

When an enumeration value is present in the set, it indicates that the corresponding feature or behavior is enabled for the control. Conversely, when the value is omitted from the set the feature or behavior is disabled.

See also

Values

csAcceptsControlsIndicates that one can add child controls to a control.
csCaptureMouseControl focus and style changes when under the mouse cursor.
csDesignInteractiveControl handles mouse events at design-time.
csClickEventsControl responds to mouse click events.
csFramedControl has a 3D frame; used on scroll bars in the current LCL version.
csSetCaptionIndicates that the Caption for a control is updated when a value is assigned to the Name property. As long as Name=Text, changing the Name will set the Caption. When, for example, a button's Name and Caption have the value 'Button1' and the Name is changed to 'Button2' then the Caption is changed as
csOpaqueControl is drawn with a non-transparent background; implementation is widgetset-specific.
csDoubleClicksIndicates that the control understands mouse double click events.
csTripleClicksIndicates that the control understands mouse triple click events.
csQuadClicksIndicates that the control understands mouse quadruple click events.
csFixedWidthIndicates that the control cannot change its width.
csFixedHeightIndicates that the control cannot change its height (e. g. a combo-box).
csNoDesignVisibleIndicates that the control is invisible in the form designer.
csReplicatableControl can be drawn using the TWinControl.PaintTo method.
csNoStdEventsKey messages are handler by widgetset classes instead of control events.
csDisplayDragImageDisplay images from the drag imagelist during a drag operation over the control.
csReflectorControl responds to size, focus, and dialog messages and can be used as an ActiveX control (Windows).
csActionClientControl includes support for TBasicAction.
csMenuEventsControl responds to menu and menu item events.
csNoFocusIndicates that the control or form cannot receive focus.
csNeedsBorderPaintIndicates that the client area for the control needs to be redrawn including its borders. LCL controls do not use this value in their control styles property. Implemented for JVCL controls and its theme engine.
csParentBackgroundIndicates whether the background for the parent control is used to fill the client area in the control. Used for controls which have a window handle for the parent control and do not use csOpaque in their control style. On some platforms (like WinXP and Windows 7), csParentBackground can be used to
csDesignNoSmoothResizeWYSIWYG resizing is not used on the design surface.
csDesignFixedBoundsControl cannot be moved or resized on the designer surface.
csHasDefaultActionControl executes a default action when the Space or Enter key is pressed.
csHasCancelActionControl executes an action when the Escape key is pressed or the form/dialog is closed using the window decoration.
csNoDesignSelectableControl cannot be selected at design-time.
csOwnedChildrenNotSelectableChild controls owned by this control are not selectable in the designer.
csAutoSize0x0If the preferred size is 0x0 pixels then the control is auto-sized; the default minimum client size will be 1x1 pixels.
csAutoSizeKeepChildLeftWhen AutoSize is True, do not move child controls horizontally.
csAutoSizeKeepChildTopWhen AutoSize is True, do not move child controls vertically.
csAutoSizeIgnoreByParent
csRequiresKeyboardInputIndicates that a control requires keyboard input to be utilized by the user. Used for the Android (and other) platforms to activate the virtual keyboard when an active control needs to respond to input values. Used primarily for devices that do not have a hardware keyboard.

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.