// wxSound class
#define wxUSE_SOUND 1
+// wxMovieCtrl class
+//
+// Recommended setting: 0 (Nice to have)
+#define wxUSE_MOVIECTRL 0
+
// Use wxWidget's XRC XML-based resource system. Recommended.
//
// Default is 1
// wxSound class
#define wxUSE_SOUND 1
+// wxMovieCtrl class
+//
+// Requires DirectX 7 & DirectMedia or above (link with STRMIIDS.LIB)
+//
+// Recommended setting: 0 (Nice to have, but SDK doesn't exist by default)
+#define wxUSE_MOVIECTRL 0
+
// Use wxWidget's XRC XML-based resource system. Recommended.
//
// Default is 1
// wxSound class
#define wxUSE_SOUND 0
+// wxMovieCtrl class
+//
+// Requires DirectX 7 & DirectMedia or above (link with STRMIIDS.LIB)
+//
+// Recommended setting: 0 (Nice to have, but SDK doesn't exist by default)
+#define wxUSE_MOVIECTRL 0
+
// Use wxWidget's XRC XML-based resource system. Recommended.
//
// Default is 1
// wxSound class
#define wxUSE_SOUND 1
+// wxMovieCtrl class
+//
+// Requires DirectX 7 & DirectMedia or above (link with STRMIIDS.LIB)
+//
+// Recommended setting: 0 (Nice to have, but SDK doesn't exist by default)
+#define wxUSE_MOVIECTRL 0
+
// Use wxWidget's XRC XML-based resource system. Recommended.
//
// Default is 1
#pragma hdrstop
#endif
-#define wxUSE_MOVIECTRL 1
-
#if wxUSE_MOVIECTRL
#include "wx/moviectrl.h"
#ifndef __WXMAC__
TerminateQTML();
#endif
-
- m_bLoaded = false;
}
wxMovieCtrl::~wxMovieCtrl()
#pragma hdrstop
#endif
-#define wxUSE_MOVIECTRL 1
-
#if wxUSE_MOVIECTRL
#include "wx/moviectrl.h"
//Set our background color to black by default
SetBackgroundColour(*wxBLACK);
+ wxControl::SetLabel(label);
+
if(!fileName.empty())
{
if (!Load(fileName))
return false;
- SetLabel(label);
-
if(!Play())
return false;
}
- else
- wxControl::SetLabel(label);
return true;
}
//set the time format
wxDSVERIFY( pMS->SetTimeFormat(&TIME_FORMAT_MEDIA_TIME) );
+
+ SetLabel(GetLabel());
+
m_bLoaded = true;
return true;
}