Update of /cvsroot/mahogany/M/src/wx/generic
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18685/src/wx/generic
Modified Files:
persctrl.cpp
Log Message:
use OnCreate(), not OnSize(), for restoring the list book page, as otherwise
the initially selected page is sized incorrectly (we select it too early,
before base class OnSize() can do the adjustments)
Index: persctrl.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/wx/generic/persctrl.cpp,v
retrieving revision 1.91
retrieving revision 1.92
diff -b -u -2 -r1.91 -r1.92
--- persctrl.cpp 24 Oct 2004 13:53:48 -0000 1.91
+++ persctrl.cpp 20 Feb 2005 18:03:36 -0000 1.92
@@ -74,5 +74,5 @@
BEGIN_EVENT_TABLE(wxPListbook, wxListbook)
- EVT_SIZE(wxPListbook::OnSize)
+ EVT_WINDOW_CREATE(wxPListbook::OnCreate)
END_EVENT_TABLE()
@@ -431,8 +431,5 @@
}
-// first time our OnSize() is called we restore the page: there is no other
-// event sent specifically after window creation and we can't do in the ctor
-// (too early) - this should change in wxWin 2.1...
-void wxPListbook::OnSize(wxSizeEvent& event)
+void wxPListbook::OnCreate(wxWindowCreateEvent& event)
{
if ( m_bFirstTime ) {
@@ -442,5 +439,5 @@
}
- // important things are done in the base class version!
+ // important things may be done in the base class version
event.Skip();
}
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates