Skip to content

ReadOnlyColor - DfBaseRichEdit

Determines the background color when the edit control is read-only

Type: Property
Access: Read/Write
Data Type: Integer
Parameters: None

Syntax

Property Integer ReadOnlyColor
Access Type Syntax
Read Access: Get ReadOnlyColor to IntegerVariable
Write Access: Set ReadOnlyColor to IntegerVariable/Value

Description

Determines the background color when the edit control is read-only (Read_Only_State is True). If clNone, which is the default, no special color is applied and the normal background color set in the Color property is applied. The value can be set at design-time or dynamically after the control is paged.

In the data-aware versions of these classes, the default value is changed to clBtnFace, giving a read-only data entry object (DEO) edit a disabled appearance. This is used in conjunction with the pbNoEnterReadOnly property, which allows a NoEnter Text DEO to be read-only, but focusable, and therefore scrollable and copyable.