System.Classes.TComponentStyle

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TComponentStyle = set of (csInheritable, csCheckPropAvail, csSubComponent,
csTransient);

C++

typedef System::Set<System_Classes__75, System_Classes__75::csInheritable, System_Classes__75::csTransient> TComponentStyle;

Properties

Type Visibility Source Unit Parent
set
typedef
public
System.Classes.pas
System.Classes.hpp
System.Classes System.Classes

Description

TComponentStyle is a set of flags that describe the current Style of a component.

The following table indicates the meaning of the various TComponentStyle flags:



Value Meaning

csInheritable

Descendant form types can inherit from the component. If any of the components in a form do not have the csInheritable style, the form cannot be used as the ancestor of an inherited form.

csCheckPropAvail

The component needs to check its properties for readability. This is only used for COM controls (on Windows), where the Object Inspector cannot tell directly that a property is readable, and therefore displayable.

csSubComponent

The component is a subcomponent of the component that is the value of its Owner property. Unlike top-level components, subcomponents are not saved with the form or data module in which they reside. Instead, a subcomponent appears as the value of a published property of its Owner, and its published properties and events are saved in the form file with the owning component.

csTransient

The component is a temporary object that should not be saved in a form file.