wxGenericDirCtrl & MouseEvents

Hello,

I would like to deal (partially) with MouseEvents generated on an
wxGenericDirCtrl.

In simpler Words:

I want to do something with the files on a doubleclick or on a "start drag".

But:

EVT_LEFT_DCLICK does not get fired, also EVT_RIGHT_DOWN dows not get fired.

What can I do?

Harald

Massa, Harald wrote:

Hello,
I would like to deal (partially) with MouseEvents generated on an
wxGenericDirCtrl.
In simpler Words:
I want to do something with the files on a doubleclick or on a "start drag".

EVT_LEFT_DCLICK does not get fired, also EVT_RIGHT_DOWN dows not get fired.
What can I do?

Use the GetTreeCtrl() method to get a reference to the wxTreeCtrl embedded in the wxGenericDirCtrl, and then bind your event handlers directly to the tree.

ยทยทยท

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