mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-04 05:23:30 +01:00
IDEIntf: OI: added check if property is readonly, TSessionPropertiesPropertyEditor now read only
git-svn-id: trunk@14429 -
This commit is contained in:
parent
891d6f994c
commit
75930154ad
@ -1741,6 +1741,7 @@ begin
|
||||
or ((FCurrentEditorLookupRoot<>nil)
|
||||
and (FPropertyEditorHook<>nil)
|
||||
and (FPropertyEditorHook.LookupRoot<>FCurrentEditorLookupRoot))
|
||||
or (Rows[FItemIndex].IsReadOnly)
|
||||
then begin
|
||||
{DebugLn(['TOICustomPropertyGrid.CanEditRowValue',
|
||||
' pgsChangingItemIndex=',pgsChangingItemIndex in FStates,
|
||||
|
||||
@ -2916,8 +2916,9 @@ end;
|
||||
|
||||
function TStringPropertyEditor.GetEditLimit: Integer;
|
||||
begin
|
||||
if GetPropType^.Kind = tkString then
|
||||
Result := GetTypeData(GetPropType)^.MaxLength else
|
||||
if GetPropType^.Kind = tkSString then
|
||||
Result := GetTypeData(GetPropType)^.MaxLength
|
||||
else
|
||||
Result := 255;
|
||||
end;
|
||||
|
||||
@ -4940,7 +4941,7 @@ end;
|
||||
|
||||
function TSessionPropertiesPropertyEditor.GetAttributes: TPropertyAttributes;
|
||||
begin
|
||||
Result:=[paDialog,paRevertable];
|
||||
Result:=[paDialog,paRevertable,paReadOnly];
|
||||
end;
|
||||
|
||||
procedure TSessionPropertiesPropertyEditor.Edit;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user