LCL/ShellCtrls: Change TShellListView/TShellTreeView.ReadOnly to be true by default.

This commit is contained in:
wp_xyz 2024-01-29 14:45:34 +01:00
parent 723cc5ea3c
commit 9035cf4f5d

View File

@ -175,7 +175,7 @@ type
property ParentFont;
property ParentShowHint;
property PopupMenu;
property ReadOnly;
property ReadOnly default True;
property RightClickSelect;
property Root;
property RowSelect;
@ -346,7 +346,7 @@ type
property ParentFont;
property ParentShowHint;
property PopupMenu;
property ReadOnly;
property ReadOnly default True;
property RowSelect;
property ScrollBars;
property ShowColumnHeaders;
@ -775,6 +775,7 @@ begin
{$ELSE}
FFindOptions := [foFindExpands];
{$ENDIF}
Options := Options + [tvoReadOnly];
// Initial property values
FObjectTypes:= [otFolders];
@ -1799,6 +1800,7 @@ begin
ObjectTypes := [otNonFolders];
FMaskCaseSensitivity := mcsPlatformDefault;
FAutoSizeColumns := true;
ReadOnly := true;
Self.Columns.Add;
Self.Columns.Add;