IDEIntf: OI: added check if property is readonly, TSessionPropertiesPropertyEditor now read only

git-svn-id: trunk@14429 -
This commit is contained in:
mattias 2008-03-05 13:26:14 +00:00
parent 891d6f994c
commit 75930154ad
2 changed files with 5 additions and 3 deletions

View File

@ -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,

View File

@ -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;