mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 14:40:24 +02:00
ideintf: don't recreate the inspector grid on show component tree option change
git-svn-id: trunk@23204 -
This commit is contained in:
parent
5a9d464e4f
commit
e5f3fab6f3
@ -4523,29 +4523,28 @@ end;
|
||||
|
||||
procedure TObjectInspectorDlg.SetShowComponentTree(const AValue: boolean);
|
||||
begin
|
||||
if FShowComponentTree=AValue then exit;
|
||||
FShowComponentTree:=AValue;
|
||||
if FShowComponentTree = AValue then Exit;
|
||||
FShowComponentTree := AValue;
|
||||
BeginUpdate;
|
||||
try
|
||||
ShowComponentTreePopupMenuItem.Checked:=FShowComponentTree;
|
||||
ShowComponentTreePopupMenuItem.Checked := FShowComponentTree;
|
||||
// hide controls while rebuilding
|
||||
if Splitter1<>nil then
|
||||
Splitter1.Visible:=false;
|
||||
DestroyNoteBook;
|
||||
ComponentTree.Visible:=false;
|
||||
AvailPersistentComboBox.Visible:=false;
|
||||
if Splitter1 <> nil then
|
||||
Splitter1.Visible := False;
|
||||
ComponentTree.Visible := False;
|
||||
AvailPersistentComboBox.Visible := False;
|
||||
// rebuild controls
|
||||
ComponentTree.Parent:=Self;
|
||||
ComponentTree.Align:=alTop;
|
||||
ComponentTree.Parent := Self;
|
||||
ComponentTree.Align := alTop;
|
||||
if FShowComponentTree then
|
||||
CreateSplitter(True)
|
||||
else begin
|
||||
ComponentTree.Height:=ComponentTreeHeight;
|
||||
else
|
||||
begin
|
||||
ComponentTree.Height := ComponentTreeHeight;
|
||||
FreeAndNil(Splitter1);
|
||||
end;
|
||||
ComponentTree.Visible:=FShowComponentTree;
|
||||
AvailPersistentComboBox.Visible:=not FShowComponentTree;
|
||||
CreateNoteBook;
|
||||
ComponentTree.Visible := FShowComponentTree;
|
||||
AvailPersistentComboBox.Visible := not FShowComponentTree;
|
||||
finally
|
||||
EndUpdate;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user