mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-01 05:52:32 +02:00
LazReport, make ObjectInspector remember the last edited property on selecting objects, issue #25845
git-svn-id: trunk@44417 -
This commit is contained in:
parent
221bff034a
commit
95e89c5bda
@ -7583,9 +7583,19 @@ begin
|
||||
if (Obj=nil) or (Obj is TPersistent) then
|
||||
begin
|
||||
FSelectedObject:=Obj;
|
||||
fPropertyGrid.TIObject := TPersistent(Obj);
|
||||
if Obj <> nil then
|
||||
if Obj=nil then
|
||||
fPropertyGrid.Selection := nil
|
||||
else
|
||||
begin
|
||||
fcboxObjList.ItemIndex := fcboxObjList.Items.IndexOfObject(Obj);
|
||||
NewSel := TPersistentSelectionList.Create;
|
||||
try
|
||||
NewSel.Add(TfrView(Obj));
|
||||
fPropertyGrid.Selection := NewSel;
|
||||
finally
|
||||
NewSel.Free;
|
||||
end;
|
||||
end;
|
||||
end
|
||||
else
|
||||
if Obj is TFpList then
|
||||
|
Loading…
Reference in New Issue
Block a user