I have two controls, derived from wxTree and wxGrid respectively,
housed in a VSplitter. The wxGrid control displays the 'contents' of
the branch selected in the wxTree (surprise, surprise).
I want to be able to drag one or more rows from the wxGrid to a
different branch of the wxTree.
Since there appears to be no EVT_GRID_LEFT_DOWN I am trying
to use EVT_LEFT_DOWN, expecting to be able to determine
somehow the row number from the position within the wxGrid
window of the click.
Unfortunately, the absence of output from a print statement in the
function that sinks the mouse down event indicates that none of
this junk is working for me.
If you've read this far, have you got any hints for me?
Since there appears to be no EVT_GRID_LEFT_DOWN I am trying
to use EVT_LEFT_DOWN, expecting to be able to determine
somehow the row number from the position within the wxGrid
window of the click.
Unfortunately, the absence of output from a print statement in the
function that sinks the mouse down event indicates that none of
this junk is working for me.
Are you binding the EVT_LEFT_DOWN directly to the grid or to
grid.GetGridWindow()? The wxGrid is actually composed of several windows so
if you want to catch mouse events for any of them you need to hook the
handler to the compent window.
ยทยทยท
--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters? http://wxPython.org Relax with wxPython!