mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 13:38:00 +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;
|
||||
|
||||
DoModified;
|
||||
if Assigned(ComponentTree) then
|
||||
ComponentTree.RebuildComponentNodes
|
||||
end;
|
||||
|
||||
function TObjectInspectorDlg.GetComponentPanelHeight: integer;
|
||||
|
@ -1580,6 +1580,7 @@ procedure TDesigner.DoChangeZOrder(TheAction: Integer);
|
||||
var
|
||||
Control: TControl;
|
||||
Parent: TWinControl;
|
||||
OI: TObjectInspectorDlg;
|
||||
begin
|
||||
if Selection.Count <> 1 then Exit;
|
||||
if not Selection[0].IsTControl then Exit;
|
||||
@ -1606,6 +1607,9 @@ begin
|
||||
SelectOnlyThisComponent(Control);
|
||||
|
||||
Modified;
|
||||
OI := FormEditingHook.GetCurrentObjectInspector;
|
||||
if Assigned(OI) then
|
||||
OI.ComponentTree.RebuildComponentNodes;
|
||||
end;
|
||||
|
||||
procedure TDesigner.GiveComponentsNames;
|
||||
|
Loading…
Reference in New Issue
Block a user