]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/panelg.cpp
optimized default GUI font loading
[wxWidgets.git] / src / generic / panelg.cpp
index 249c75e9d6b4401c2a6fd389d0b6a7b8e39da359..1b36dff649e2f55e6e4ce72ae86770210b0c6bb6 100644 (file)
@@ -81,6 +81,13 @@ wxPanel::~wxPanel()
 {
 }
 
 {
 }
 
+void wxPanel::InitDialog()
+{
+    wxInitDialogEvent event(GetId());
+    event.SetEventObject(this);
+    GetEventHandler()->ProcessEvent(event);
+}
+
 // ----------------------------------------------------------------------------
 // event handlers
 // ----------------------------------------------------------------------------
 // ----------------------------------------------------------------------------
 // event handlers
 // ----------------------------------------------------------------------------
@@ -95,11 +102,12 @@ void wxPanel::OnSysColourChanged(wxSysColourChangedEvent& event)
     wxWindow::OnSysColourChanged(event);
 }
 
     wxWindow::OnSysColourChanged(event);
 }
 
-void wxPanel::OnSize(wxSizeEvent& WXUNUSED(event))
+void wxPanel::OnSize(wxSizeEvent& event)
 {
 #if wxUSE_CONSTRAINTS
     if (GetAutoLayout())
         Layout();
 #endif // wxUSE_CONSTRAINTS
 {
 #if wxUSE_CONSTRAINTS
     if (GetAutoLayout())
         Layout();
 #endif // wxUSE_CONSTRAINTS
+    event.Skip();
 }
 
 }