mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 19:19:19 +02:00
IDE: component list: update buttons
git-svn-id: trunk@46590 -
This commit is contained in:
parent
4acddedfdf
commit
f2922981e5
@ -141,8 +141,10 @@ begin
|
|||||||
ParentParent := Parent.Parent;
|
ParentParent := Parent.Parent;
|
||||||
//DebugLn(['*** TComponentListForm.FormShow, Parent=', Parent, ', Parent.Parent=', ParentParent]);
|
//DebugLn(['*** TComponentListForm.FormShow, Parent=', Parent, ', Parent.Parent=', ParentParent]);
|
||||||
ButtonPanel.Visible := ParentParent=Nil;
|
ButtonPanel.Visible := ParentParent=Nil;
|
||||||
if ButtonPanel.Visible then
|
if ButtonPanel.Visible then begin
|
||||||
PageControl.AnchorSideBottom.Side := asrTop
|
PageControl.AnchorSideBottom.Side := asrTop;
|
||||||
|
UpdateButtonState;
|
||||||
|
end
|
||||||
else
|
else
|
||||||
PageControl.AnchorSideBottom.Side := asrBottom;
|
PageControl.AnchorSideBottom.Side := asrBottom;
|
||||||
end;
|
end;
|
||||||
@ -210,7 +212,7 @@ end;
|
|||||||
|
|
||||||
procedure TComponentListForm.UpdateShowing;
|
procedure TComponentListForm.UpdateShowing;
|
||||||
begin
|
begin
|
||||||
if ButtonPanel.Visible then
|
if (ButtonPanel<>nil) and ButtonPanel.Visible then
|
||||||
UpdateButtonState;
|
UpdateButtonState;
|
||||||
inherited UpdateShowing;
|
inherited UpdateShowing;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user