vcl-cxedit-626fdc94.md
Stores editor state style settings.
TcxEditStyle = class(
TcxCustomEditStyle
)
Style settings define editor appearance in base and additional states (read-only, hot-tracked, disabled, etc.)
The list below outlines key members of the TcxEditStyle class. These settings allow you to customize editor appearance.
Color | BorderColor | TransparentBorderSpecify background and border colors.Edges | BorderStyleAllow you to hide or display individual borders (left, right, top, and bottom) and switch between available line styles.Font | TextColor | TextStyleAllow you to customize text appearance settings.LookAndFeelProvide access to look & feel settings. You can use this property to apply a skin to an editor and/or its different states.ShadowSpecifies if the shadow effect is enabled.
BaseStyleProvides 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.HotTrack | ReadOnly
Specify if corresponding child styles are enabled for hot-tracked and read-only editor states.
Note
HotTrack and ReadOnly properties are in effect only if the current style defines base editor appearance settings (that is, the State property returns cxNormal).
StateReturns the editor state associated with the current style.
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.
AssignedValuesAllows you to track the state of individual style settings and reset them.BeginUpdate | EndUpdateAllow you to avoid excessive redraw operations during batch style setting changes.RestoreDefaultsRestores default appearance settings.
The following public API members reference a TcxEditStyle object:
TcxCustomEdit.StyleDefines style settings applied to the editor in the base (normal) state.TcxCustomEdit.StyleDisabledDefines style settings applied to the editor when it is disabled.TcxCustomEdit.StyleFocusedDefines style settings applied to the editor when it has focus.TcxCustomEdit.StyleHotDefines style settings applied to the editor when it is hot-tracked.TcxCustomEdit.StyleReadOnlyDefines style settings applied to the read-only editor state.TcxCustomEdit.StylesProvides access to all styles that define editor appearance in different states.
TcxEditStyleController.StyleDefines style settings for multiple editors in the base (normal) state.TcxEditStyleController.StyleDisabledDefines style settings applied to disabled editors.TcxEditStyleController.StyleFocusedDefines style settings applied to the currently focused editor.TcxEditStyleController.StyleHotDefines style settings applied to the currently hot-tracked editor.TcxEditStyleController.StyleReadOnlyDefines style settings applied to editors in read-only mode.TcxEditStyleController.StylesProvides access to all styles that define editor appearance in different states.
TcxDefaultEditStyleController.StyleSpecifies the default style settings for the base (normal) state of all editors in an application.TcxDefaultEditStyleController.StyleDisabledDefines default style settings applied to disabled editors.TcxDefaultEditStyleController.StyleFocusedDefines style settings applied to an editor when it receives focus.TcxDefaultEditStyleController.StyleHotDefines style settings applied to a hot-tracked editor.TcxDefaultEditStyleController.StyleReadOnlyDefines default style settings applied to editors in read-only mode.TcxDefaultEditStyleController.StylesProvides access to all styles that define default editor appearance in different states.
TObject TPersistent TInterfacedPersistent TcxInterfacedPersistent TcxContainerStyle TcxCustomEditStyle TcxEditStyle
See Also