]> git.saurik.com Git - wxWidgets.git/commitdiff
Added size event for status bar
authorRobert Roebling <robert@roebling.de>
Sat, 30 Jan 1999 16:43:47 +0000 (16:43 +0000)
committerRobert Roebling <robert@roebling.de>
Sat, 30 Jan 1999 16:43:47 +0000 (16:43 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1526 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/frame.cpp
src/gtk1/frame.cpp

index 9d83f91591398b845f71493305b907862d282c40..01b3ef24e5211510a4a1432ae0361d65e911565b 100644 (file)
@@ -453,10 +453,18 @@ void wxFrame::GtkOnSize( int WXUNUSED(x), int WXUNUSED(y), int width, int height
 
     m_sizeSet = TRUE;
 
+    /* send size event to frame */
+
     wxSizeEvent event( wxSize(m_width,m_height), GetId() );
     event.SetEventObject( this );
     GetEventHandler()->ProcessEvent( event );
 
+    /* send size event to status bar */
+
+    wxSizeEvent event2( wxSize(m_frameStatusBar->m_width,m_frameStatusBar->m_height), m_frameStatusBar->GetId() );
+    event2.SetEventObject( m_frameStatusBar );
+    m_frameStatusBar->GetEventHandler()->ProcessEvent( event2 );
+
     m_resizing = FALSE;
 }
 
index 9d83f91591398b845f71493305b907862d282c40..01b3ef24e5211510a4a1432ae0361d65e911565b 100644 (file)
@@ -453,10 +453,18 @@ void wxFrame::GtkOnSize( int WXUNUSED(x), int WXUNUSED(y), int width, int height
 
     m_sizeSet = TRUE;
 
+    /* send size event to frame */
+
     wxSizeEvent event( wxSize(m_width,m_height), GetId() );
     event.SetEventObject( this );
     GetEventHandler()->ProcessEvent( event );
 
+    /* send size event to status bar */
+
+    wxSizeEvent event2( wxSize(m_frameStatusBar->m_width,m_frameStatusBar->m_height), m_frameStatusBar->GetId() );
+    event2.SetEventObject( m_frameStatusBar );
+    m_frameStatusBar->GetEventHandler()->ProcessEvent( event2 );
+
     m_resizing = FALSE;
 }