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

Modified Files:
        wxTextDialog.cpp 
Log Message:
fixed dialog layout and initial cursor position under wxGTK

Index: wxTextDialog.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxTextDialog.cpp,v
retrieving revision 1.10
retrieving revision 1.11
diff -b -u -2 -r1.10 -r1.11
--- wxTextDialog.cpp    16 Jan 2006 20:32:28 -0000      1.10
+++ wxTextDialog.cpp    20 Aug 2006 20:27:26 -0000      1.11
@@ -174,5 +174,5 @@
 
    // use fixed-width font
-   m_text->SetFont(wxFont(12, wxFONTFAMILY_TELETYPE,
+   m_text->SetFont(wxFont(wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_TELETYPE,
                           wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL));
 
@@ -200,15 +200,12 @@
    // ----------------
 
-   SetSizer(sizerTop);
-   SetAutoLayout(TRUE);
-
-   // FIXME: bug in wxMSW? without Layout() the buttons are not positioned
-   //        correctly initially
-#ifdef __WXMSW__
-   Layout();
-#endif
+   SetSizerAndFit(sizerTop);
 
    m_text->SetFocus();
 
+   // under wxGTK SetFocus() scrolls the control to the bottom for some reason
+   // while we always want to show the top of the message
+   m_text->SetInsertionPoint(0);
+
    Show(TRUE);
 }


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to