Skip to main content

TcxEditStyle Class

Stores editor state style settings.

Declaration

TcxEditStyle = class(
    TcxCustomEditStyle
)

Remarks

Style settings define base control appearance as well as control appearance in different states, such as read-only, hot-tracked, and disabled.

Main API Members

The list below outlines key members of the TcxContainerStyle class that allow you to customize control appearance.

Style Appearance Settings

Color | BorderColor | TransparentBorder
Specify background and border colors.
Edges | BorderStyle
Allow you to hide or display individual borders (left, right, top, and bottom) and switch between available line styles.
Font | TextColor | TextStyle
Allow you to customize text appearance settings.
LookAndFeel
Provide access to look & feel settings. You can use this property to apply a skin to a control and/or its different states.
Shadow
Specifies if the shadow effect is enabled.
BaseStyle
Provides access to the base style used as the source of default settings in the current style. This property returns nil (in Delphi) or nullptr (in C++Builder) if the current style is a base style.
State
Returns the control state associated with the current style.

General-Purpose API Members

ActiveStyleController | StyleController

Provide access to the parent style controller.

Tip

To apply the same style settings to multiple editors, you can use a TcxEditStyleController component. If you need to apply the same style settings to all editors in your application, you can use a TcxDefaultEditStyleController component.

AssignedValues
Allows you to track the state of individual style settings and reset them.
BeginUpdate | EndUpdate
Allow you to avoid excessive redraw operations during batch style setting changes.
RestoreDefaults
Restores default appearance settings.

Direct TcxEditStyle Class References

The following public API members reference a TcxEditStyle object:

Editor Properties

TcxCustomEdit.Style
Defines style settings applied to the editor in the base (normal) state.
TcxCustomEdit.StyleDisabled
Defines style settings applied to the editor when it is disabled.
TcxCustomEdit.StyleFocused
Defines style settings applied to the editor when it has focus.
TcxCustomEdit.StyleHot
Defines style settings applied to the editor when it is hot-tracked.
TcxCustomEdit.StyleReadOnly
Defines style settings applied to the read-only editor state.
TcxCustomEdit.Styles
Provides access to all styles that define editor appearance in different states.

Style Controller Properties

TcxEditStyleController.Style
Defines style settings for multiple editors in the base (normal) state.
TcxEditStyleController.StyleDisabled
Defines style settings applied to disabled editors.
TcxEditStyleController.StyleFocused
Defines style settings applied to the currently focused editor.
TcxEditStyleController.StyleHot
Defines style settings applied to the currently hot-tracked editor.
TcxEditStyleController.StyleReadOnly
Defines style settings applied to editors in read-only mode.
TcxEditStyleController.Styles
Provides access to all styles that define editor appearance in different states.

Default Style Controller Properties

TcxDefaultEditStyleController.Style
Specifies the default style settings for the base (normal) state of all editors in an application.
TcxDefaultEditStyleController.StyleDisabled
Defines default style settings applied to disabled editors.
TcxDefaultEditStyleController.StyleFocused
Defines style settings applied to an editor when it receives focus.
TcxDefaultEditStyleController.StyleHot
Defines style settings applied to a hot-tracked editor.
TcxDefaultEditStyleController.StyleReadOnly
Defines default style settings applied to editors in read-only mode.
TcxDefaultEditStyleController.Styles
Provides access to all styles that define default editor appearance in different states.
See Also