mirror of
				https://gitlab.com/freepascal.org/lazarus/lazarus.git
				synced 2025-11-04 15:32:00 +01:00 
			
		
		
		
	anchordocking: undo MakeFullyVisible - it moves windows to other desktops
git-svn-id: trunk@41983 -
This commit is contained in:
		
							parent
							
								
									9cbfcbcbcd
								
							
						
					
					
						commit
						06c4055b7c
					
				@ -2495,22 +2495,12 @@ begin
 | 
			
		||||
end;
 | 
			
		||||
 | 
			
		||||
procedure TAnchorDockMaster.MakeVisible(AControl: TControl; SwitchPages: boolean);
 | 
			
		||||
var
 | 
			
		||||
  Form: TCustomForm;
 | 
			
		||||
begin
 | 
			
		||||
  while AControl<>nil do begin
 | 
			
		||||
    AControl.Visible:=true;
 | 
			
		||||
    if SwitchPages and (AControl is TAnchorDockPage) then
 | 
			
		||||
      TAnchorDockPageControl(AControl.Parent).PageIndex:=
 | 
			
		||||
        TAnchorDockPage(AControl).PageIndex;
 | 
			
		||||
    if AControl.Parent=nil then begin
 | 
			
		||||
      if AControl is TCustomForm then begin
 | 
			
		||||
        Form:=TCustomForm(AControl);
 | 
			
		||||
        if Form.Monitor<>nil then
 | 
			
		||||
          Form.MakeFullyVisible(nil,true);
 | 
			
		||||
      end;
 | 
			
		||||
      break;
 | 
			
		||||
    end;
 | 
			
		||||
    AControl:=AControl.Parent;
 | 
			
		||||
  end;
 | 
			
		||||
end;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user