X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c42b1de68a5d4b48c00092d9996574bfb8d8a542..084db46c8b4f3f8d5e6a5f55e09e04f5a680c8a5:/contrib/samples/mmedia/mmboard.cpp diff --git a/contrib/samples/mmedia/mmboard.cpp b/contrib/samples/mmedia/mmboard.cpp index 50e4232047..a5450edfa1 100644 --- a/contrib/samples/mmedia/mmboard.cpp +++ b/contrib/samples/mmedia/mmboard.cpp @@ -37,7 +37,7 @@ // ressources // ---------------------------------------------------------------------------- // the application icon -#if defined(__WXGTK__) || defined(__WXMOTIF__) +#if defined(__WXGTK__) || defined(__WXX11__) || defined(__WXMOTIF__) || defined(__WXMAC__) #include "mondrian.xpm" #endif @@ -312,18 +312,18 @@ MMBoardFrame::MMBoardFrame(const wxString& title, const wxPoint& pos, const wxSi // Bitmap button panel wxBoxSizer *buttonSizer = new wxBoxSizer(wxHORIZONTAL); - wxBitmap *play_bmp = new wxBitmap(play_back_xpm); - wxBitmap *stop_bmp = new wxBitmap(stop_back_xpm); - wxBitmap *eject_bmp = new wxBitmap(eject_xpm); - wxBitmap *pause_bmp = new wxBitmap(pause_xpm); + wxBitmap play_bmp(play_back_xpm); + wxBitmap stop_bmp(stop_back_xpm); + wxBitmap eject_bmp(eject_xpm); + wxBitmap pause_bmp(pause_xpm); - m_playButton = new wxBitmapButton(m_panel, MMBoard_PlayButton, *play_bmp); + m_playButton = new wxBitmapButton(m_panel, MMBoard_PlayButton, play_bmp); m_playButton->Enable(FALSE); - m_pauseButton = new wxBitmapButton(m_panel, MMBoard_PauseButton, *pause_bmp); + m_pauseButton = new wxBitmapButton(m_panel, MMBoard_PauseButton, pause_bmp); m_pauseButton->Enable(FALSE); - m_stopButton = new wxBitmapButton(m_panel, MMBoard_StopButton, *stop_bmp); + m_stopButton = new wxBitmapButton(m_panel, MMBoard_StopButton, stop_bmp); m_stopButton->Enable(FALSE); - m_ejectButton = new wxBitmapButton(m_panel, MMBoard_EjectButton, *eject_bmp); + m_ejectButton = new wxBitmapButton(m_panel, MMBoard_EjectButton, eject_bmp); m_ejectButton->Enable(FALSE); buttonSizer->Add(m_playButton, 0, wxALL, 2); @@ -379,11 +379,11 @@ void MMBoardFrame::CloseVideoWindow() { if (!m_video_window) return; - - m_sizer->Remove(m_video_window); + + m_sizer->Detach( m_video_window ); delete m_video_window; m_video_window = NULL; - + m_sizer->Fit(this); }