wxMediaCtrl - can it respond to mouse events?

Is it possible to get a wx.MediaCtrl to respond to mouse events? The idea is that I want to have a button-less media control which will play when I 'click' it with mouse. ('double-clicking' will launch the video in another, more elaborate window). Binding it to an mouse event in my normal way doesn't have any effect. (Windows Vista, wxPython 2.8, python 2.6)

self.Bind(wx.EVT_LEFT_DOWN, self.OnLeftDown, self.mc)

Any suggestions are, as always, most welcome!

Best regards,
Tim Grove

Timothy W. Grove wrote:

Is it possible to get a wx.MediaCtrl to respond to mouse events? The idea is that I want to have a button-less media control which will play when I 'click' it with mouse. ('double-clicking' will launch the video in another, more elaborate window). Binding it to an mouse event in my normal way doesn't have any effect. (Windows Vista, wxPython 2.8, python 2.6)

self.Bind(wx.EVT_LEFT_DOWN, self.OnLeftDown, self.mc)

I'm not sure if it can work since on Windows the MediaCtrl is essentially embedding the player via ActiveX, but try it like this:

self.mc.Bind(wx.EVT_LEFT_DOWN, self.OnLeftDown)

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Is it possible to get a wx.MediaCtrl to respond to mouse events? The
idea is that I want to have a button-less media control which
will play
when I 'click' it with mouse. ('double-clicking' will launch
the video
in another, more elaborate window). Binding it to an mouse
event in my
normal way doesn't have any effect. (Windows Vista, wxPython
2.8, python
2.6)

self.Bind(wx.EVT_LEFT_DOWN, self.OnLeftDown, self.mc)

Any suggestions are, as always, most welcome!

FWIW, when I experimented with this a few weeks ago, I found that different
wxMediaCtrl back ends behaved completely differently in response to mouse
commands. Different combinations of clicking, double-clicking, and
right-clicking produced different results in different situations. For
example, I seem to recall one experiment where you had to double-click to
start the video and single-click to stop it (or maybe it was the other way
around.)

I was never able to capture the mouse events to control this and make it all
behave consistently.

As I need to potentially display different media types using different back
ends simultaneously, I ended up writing my own very simple control bar.

David