[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'StdCtrls' (#lcl)

# TCustomComboBox.ReadOnly

Disallows free-form entry of Text into the combo-box edit field.

## Declaration

Source position: stdctrls.pp line 437

`public property TCustomComboBox.ReadOnly : Boolean read FReadOnly write SetReadOnly default False;`

## Description

When True, the text can be changed only by selecting an item from the combo-box items list. When False, the text can be changed by free-form entry of a value in the edit field.

Changing the property value doesn't affect the style for the control in any manner. Changing the style doesn't affect the value in the property, as well. For some styles (such as csDropDownList) the property might have no effect because it is ignored.

## See also

TCustomComboBox.Text |  | The value in the edit box for the control.
TCustomComboBox.Style |  | Controls the appearance and behavior for the combo-box.
TCustomComboBox.AutoComplete |  | Positions the list box using partial text matching.