Back to Devexpress

TcxCustomEdit.StyleReadOnly Property

vcl-cxedit-dot-tcxcustomedit-36d17873.md

latest2.2 KB
Original Source

TcxCustomEdit.StyleReadOnly Property

Defines style settings applied to the read-only editor state.

Declaration

delphi
property StyleReadOnly: TcxEditStyle read; write;

Property Value

TypeDescription
TcxEditStyle

Stores editor state style settings.

|

Remarks

The Style property defines the base appearance settings for all editor states. If the Style.ReadOnly property is set to True, you can use the StyleReadOnly property to define different appearance attributes for the editor in read-only mode.

Read-Only State Style Settings

For instance, you can use StyleReadOnly.Font, StyleReadOnly.TextColor, and StyleReadOnly.TextStyle to customize text appearance for the editor in read-only mode. The StyleReadOnly.LookAndFeel property allows you to apply a different skin to the editor in this mode.

Refer to the TcxEditStyle class description for detailed information on all available options.

Tip

To apply the same style settings to multiple editors in read-only mode, 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.

See Also

TcxCustomEdit.StyleDisabled Property

TcxCustomEdit.StyleFocused Property

TcxCustomEdit.StyleHot Property

TcxCustomEdit.Styles Property

TcxCustomEdit Class

TcxCustomEdit Members

cxEdit Unit