if( m_imp->CreateControl(this, parent, id, pos, size,
style, validator, name) )
{
- this->Connect(GetId(), wxEVT_MEDIA_FINISHED,
- (wxObjectEventFunction) (wxEventFunction)
- (wxMediaEventFunction)
- &wxMediaCtrl::OnMediaFinished);
return true;
}
m_imp->Move(x, y, w, h);
}
-void wxMediaCtrl::Loop(bool bLoop)
-{
- m_bLoop = bLoop;
-}
-
-bool wxMediaCtrl::IsLooped()
-{
- return m_bLoop;
-}
-
-void wxMediaCtrl::OnMediaFinished(wxMediaEvent& WXUNUSED(evt))
-{
- if(m_bLoop)
- {
-#ifdef __WXDEBUG__
- wxASSERT( Play() );
-#else
- Play();
-#endif
- }
-}
-
//DARWIN gcc compiler badly screwed up - needs destructor impl in source
wxMediaBackend::~wxMediaBackend()
{ }
-#include <wx/html/forcelnk.h>
+#include "wx/html/forcelnk.h"
FORCE_LINK(basewxmediabackends);
//---------------------------------------------------------------------------