Sign in Join
FPDoc Onlineexperiment

TCustomComboBox.ReadOnly property

Member of TCustomComboBoxpublicIn unit StdCtrls

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

Declaration

pascal
property 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.