Update of /cvsroot/mahogany/M/src/gui
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30438/src/gui

Modified Files:
        wxMainFrame.cpp 
Log Message:
split window after creating all the other frame elements, this saves a few 
splitter resizes

Index: wxMainFrame.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxMainFrame.cpp,v
retrieving revision 1.191
retrieving revision 1.192
diff -b -u -2 -r1.191 -r1.192
--- wxMainFrame.cpp     13 May 2005 13:02:01 -0000      1.191
+++ wxMainFrame.cpp     9 Jul 2005 20:41:57 -0000       1.192
@@ -579,5 +579,7 @@
                                       0);
 
-   wxSize sizeFrame = GetClientSize();
+   // we have to do this to prevent the splitter from clipping the sash
+   // position to its current (== initial, small) size
+   const wxSize sizeFrame = GetClientSize();
    m_splitter->SetSize(sizeFrame);
 
@@ -599,8 +601,4 @@
    }
 
-   m_splitter->SplitVertically(winLeft, winRight, sizeFrame.x/3);
-
-   m_splitter->SetMinimumPaneSize(50);
-
    // construct the menu and toolbar
    AddFileMenu();
@@ -642,4 +640,10 @@
    }
 
+   // split the window after creating the menus and toolbars as they change
+   // client frame size and so result in sash repositioning which we avoid by
+   // doing this in the end
+   m_splitter->SetMinimumPaneSize(50);
+   m_splitter->SplitVertically(winLeft, winRight, sizeFrame.x/3);
+
    m_FolderTree->GetWindow()->SetFocus();
 }



-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to