mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-02 14:00:18 +02:00
Merged revision(s) 56244 #0bf8f0f4c9 from trunk:
AnchorDocking: Show also inactive tabed windows in Window-menu. Issue #32618, patch from Pascal Riekenberg. ........ git-svn-id: branches/fixes_1_8@56247 -
This commit is contained in:
parent
989c5ebe8c
commit
4149cf0778
@ -251,7 +251,12 @@ begin
|
|||||||
Result:=false;
|
Result:=false;
|
||||||
if AForm is TAnchorDockHostSite then exit;
|
if AForm is TAnchorDockHostSite then exit;
|
||||||
if (DockMaster.FindControl(AForm.Name)=nil) and (AForm.Parent<>nil) then exit;
|
if (DockMaster.FindControl(AForm.Name)=nil) and (AForm.Parent<>nil) then exit;
|
||||||
Result:=true;
|
Result := AForm.IsVisible
|
||||||
|
or (
|
||||||
|
Assigned(AForm.Parent)
|
||||||
|
and Assigned(AForm.Parent.Parent)
|
||||||
|
and (AForm.Parent.Parent is TAnchorDockPage)
|
||||||
|
);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TIDEAnchorDockMaster.AdjustMainIDEWindowHeight(
|
procedure TIDEAnchorDockMaster.AdjustMainIDEWindowHeight(
|
||||||
|
@ -1795,14 +1795,14 @@ begin
|
|||||||
for i:=0 to Screen.FormCount-1 do begin
|
for i:=0 to Screen.FormCount-1 do begin
|
||||||
AForm:=Screen.Forms[i];
|
AForm:=Screen.Forms[i];
|
||||||
//debugln(['TMainIDEBase.UpdateWindowMenu ',DbgSName(AForm),' Vis=',AForm.IsVisible,' Des=',DbgSName(AForm.Designer)]);
|
//debugln(['TMainIDEBase.UpdateWindowMenu ',DbgSName(AForm),' Vis=',AForm.IsVisible,' Des=',DbgSName(AForm.Designer)]);
|
||||||
if (not AForm.IsVisible) or (AForm=MainIDEBar) or (AForm=SplashForm)
|
if (AForm=MainIDEBar) or (AForm=SplashForm) or IsFormDesign(AForm)
|
||||||
or IsFormDesign(AForm) or (WindowsList.IndexOf(AForm)>=0) then
|
or (WindowsList.IndexOf(AForm)>=0) then
|
||||||
continue;
|
continue;
|
||||||
if IDEDockMaster<>nil then
|
if IDEDockMaster<>nil then
|
||||||
begin
|
begin
|
||||||
if not IDEDockMaster.AddableInWindowMenu(AForm) then continue;
|
if not IDEDockMaster.AddableInWindowMenu(AForm) then continue;
|
||||||
end else begin
|
end else begin
|
||||||
if AForm.Parent<>nil then continue;
|
if (AForm.Parent<>nil) or not AForm.IsVisible then continue;
|
||||||
end;
|
end;
|
||||||
WindowsList.Add(AForm);
|
WindowsList.Add(AForm);
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user