Sign in Join
FPDoc Onlineexperiment

TCustomListView.ReadOnly property

Member of TCustomListViewpublicIn unit ComCtrls

Disables editing of list items on the control when set to True.

Declaration

pascal
property ReadOnly: Boolean index Ord(lvpReadOnly) read GetProperty write SetProperty default False;

Description

ReadOnly is a Boolean property used to enable or disable editing of captions for list items at run-time. When ReadOnly is set to True, the editor for the control cannot be activated using a mouse double Click or by pressing the F2 function key.

The default value for the property is False, and indicates that item editing is allowed.

ReadOnly is one of the TListViewProperty values included in the TListViewProperties set type and exchanged with the widgetset class. The property value is read from and written to the TCustomTreeview widgetset class instance when its handle is valid. Changing the value for the property causes the widgetset class to be updated with the new value.

See also

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