mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 22:19:18 +02:00
IDE: Show also docked windows in TMainIDEBase.mnuWindowItemClick. Issue #32659, patch from Pascal Riekenberg.
git-svn-id: trunk@56358 -
This commit is contained in:
parent
9ac7781f41
commit
c92ce22ba5
@ -633,20 +633,8 @@ end;
|
|||||||
{ TMainIDEBase }
|
{ TMainIDEBase }
|
||||||
|
|
||||||
procedure TMainIDEBase.mnuWindowItemClick(Sender: TObject);
|
procedure TMainIDEBase.mnuWindowItemClick(Sender: TObject);
|
||||||
var
|
|
||||||
i: Integer;
|
|
||||||
Form: TCustomForm;
|
|
||||||
begin
|
begin
|
||||||
i:=Screen.CustomFormCount-1;
|
IDEWindowCreators.ShowForm(TCustomForm(TIDEMenuCommand(Sender).UserTag), true);
|
||||||
while (i>=0) do begin
|
|
||||||
Form:=Screen.CustomForms[i];
|
|
||||||
if FormMatchesCmd(Form, Sender as TIDEMenuCommand) then
|
|
||||||
begin
|
|
||||||
IDEWindowCreators.ShowForm(Form,true);
|
|
||||||
break;
|
|
||||||
end;
|
|
||||||
dec(i);
|
|
||||||
end;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TMainIDEBase.mnuCenterWindowItemClick(Sender: TObject);
|
procedure TMainIDEBase.mnuCenterWindowItemClick(Sender: TObject);
|
||||||
@ -1814,6 +1802,7 @@ begin
|
|||||||
else
|
else
|
||||||
CurMenuItem.Caption:=TCustomForm(WindowsList[i]).Caption;
|
CurMenuItem.Caption:=TCustomForm(WindowsList[i]).Caption;
|
||||||
CurMenuItem.Checked := WindowMenuActiveForm = TCustomForm(WindowsList[i]);
|
CurMenuItem.Checked := WindowMenuActiveForm = TCustomForm(WindowsList[i]);
|
||||||
|
CurMenuItem.UserTag := PtrUInt(WindowsList[i]);
|
||||||
CurMenuItem.OnClick:=@mnuWindowItemClick;
|
CurMenuItem.OnClick:=@mnuWindowItemClick;
|
||||||
// in the 'center' list
|
// in the 'center' list
|
||||||
CurMenuItem := GetMenuItem(i, itmCenterWindowLists);
|
CurMenuItem := GetMenuItem(i, itmCenterWindowLists);
|
||||||
|
Loading…
Reference in New Issue
Block a user