View Issue Details

IDProjectCategoryView StatusLast Update
0026775LazarusIDEpublic2014-10-06 17:47
Reportersamuel herzogAssigned ToMattias Gaertner 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformAllOSAllOS VersionAll
Product Version1.3 (SVN)Product BuildLazarus 1.3 r FPC 2.6.5 i386-win 
Target Version1.2.6Fixed in Version1.2.6 
Summary0026775: Patch: Center a lost Window
DescriptionThe function <Window> --> <Center a lost window> from MainMenu is very helpful.

But the missing part is:

 Form.BringToFront;

Because it get's in some cases centered but in the background.
Steps To Reproduce1. Choose <Search> from Main Menu.
2. Choose <Find in Files> and search for something.
3. The window <Search Results> will show up.
4. Now move another window over the window <Search Results> so it get's hidden.
5. Now choose <Window> from Main Menu.
6. Choose <Center a lost window> and select <Search Results>.

Nothing happens. ( the window get's centered in the background )

TagsNo tags attached.
Fixed in Revision46315
LazTarget-
Widgetset
Attached Files
  • mainbase.pas.patch (411 bytes)
    Index: ide/mainbase.pas
    ===================================================================
    --- ide/mainbase.pas	(revision 46309)
    +++ ide/mainbase.pas	(working copy)
    @@ -276,6 +276,7 @@
             debugln(['TMainIDEBase.mnuCenterWindowItemClick New=',dbgs(NewBounds)]);
             Form.BoundsRect:=NewBounds;
             Form.WindowState:=wsNormal;
    +        Form.BringToFront;
           end;
           break;
         end;
    
    mainbase.pas.patch (411 bytes)

Activities

samuel herzog

2014-09-24 19:27

developer  

mainbase.pas.patch (411 bytes)
Index: ide/mainbase.pas
===================================================================
--- ide/mainbase.pas	(revision 46309)
+++ ide/mainbase.pas	(working copy)
@@ -276,6 +276,7 @@
         debugln(['TMainIDEBase.mnuCenterWindowItemClick New=',dbgs(NewBounds)]);
         Form.BoundsRect:=NewBounds;
         Form.WindowState:=wsNormal;
+        Form.BringToFront;
       end;
       break;
     end;
mainbase.pas.patch (411 bytes)

Mattias Gaertner

2014-09-24 19:40

manager   ~0077609

Thanks.

Issue History

Date Modified Username Field Change
2014-09-24 19:26 samuel herzog New Issue
2014-09-24 19:27 samuel herzog File Added: mainbase.pas.patch
2014-09-24 19:40 Mattias Gaertner Fixed in Revision => 46315
2014-09-24 19:40 Mattias Gaertner Note Added: 0077609
2014-09-24 19:40 Mattias Gaertner Status new => resolved
2014-09-24 19:40 Mattias Gaertner Resolution open => fixed
2014-09-24 19:40 Mattias Gaertner Assigned To => Mattias Gaertner
2014-10-06 17:47 samuel herzog Status resolved => closed
2014-10-06 17:47 samuel herzog Fixed in Version => 1.2.6