mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-30 12:12:47 +02:00
IDE: Update component tree(OI) when changing the Z-order of a control. Issue #33954.
git-svn-id: trunk@58521 -
This commit is contained in:
parent
5b97504b36
commit
82ab3151e0
@ -5938,6 +5938,8 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
DoModified;
|
DoModified;
|
||||||
|
if Assigned(ComponentTree) then
|
||||||
|
ComponentTree.RebuildComponentNodes
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TObjectInspectorDlg.GetComponentPanelHeight: integer;
|
function TObjectInspectorDlg.GetComponentPanelHeight: integer;
|
||||||
|
@ -1580,6 +1580,7 @@ procedure TDesigner.DoChangeZOrder(TheAction: Integer);
|
|||||||
var
|
var
|
||||||
Control: TControl;
|
Control: TControl;
|
||||||
Parent: TWinControl;
|
Parent: TWinControl;
|
||||||
|
OI: TObjectInspectorDlg;
|
||||||
begin
|
begin
|
||||||
if Selection.Count <> 1 then Exit;
|
if Selection.Count <> 1 then Exit;
|
||||||
if not Selection[0].IsTControl then Exit;
|
if not Selection[0].IsTControl then Exit;
|
||||||
@ -1606,6 +1607,9 @@ begin
|
|||||||
SelectOnlyThisComponent(Control);
|
SelectOnlyThisComponent(Control);
|
||||||
|
|
||||||
Modified;
|
Modified;
|
||||||
|
OI := FormEditingHook.GetCurrentObjectInspector;
|
||||||
|
if Assigned(OI) then
|
||||||
|
OI.ComponentTree.RebuildComponentNodes;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TDesigner.GiveComponentsNames;
|
procedure TDesigner.GiveComponentsNames;
|
||||||
|
Loading…
Reference in New Issue
Block a user