mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 17:39:20 +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;
|
||||
//DebugLn(['*** TComponentListForm.FormShow, Parent=', Parent, ', Parent.Parent=', ParentParent]);
|
||||
ButtonPanel.Visible := ParentParent=Nil;
|
||||
if ButtonPanel.Visible then
|
||||
PageControl.AnchorSideBottom.Side := asrTop
|
||||
if ButtonPanel.Visible then begin
|
||||
PageControl.AnchorSideBottom.Side := asrTop;
|
||||
UpdateButtonState;
|
||||
end
|
||||
else
|
||||
PageControl.AnchorSideBottom.Side := asrBottom;
|
||||
end;
|
||||
@ -210,7 +212,7 @@ end;
|
||||
|
||||
procedure TComponentListForm.UpdateShowing;
|
||||
begin
|
||||
if ButtonPanel.Visible then
|
||||
if (ButtonPanel<>nil) and ButtonPanel.Visible then
|
||||
UpdateButtonState;
|
||||
inherited UpdateShowing;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user