Hi,
I have two windows and I am trying to drag an item from one window and
drop it in another. Apart from drag and drop, the windows also support
mouse click to select and highlight an item. I also have mouse
ButtonPress-1 and ButtonRelease-1 bound to some procedures.
The problem I am facing is, if I initiate a drag and drop, my mouse
button is never released and doesn't execute the procedure for
ButtonRelease-1. If I comment out all dnd commands and bindings, everything
works fine and buttonpress and release are recognised for a mouse click and
drag.
The bindings are as follows
bind .w <ButtonPress-1> "mouseClick %W %x %y %X %Y"
bind .w <ButtonRelease-1> "mouseRelease %W"
dnd bindsource .w "text/plain" { getData %W %A %a %T %W %X %Y %x %y }
50
dnd bindsource .w "text/signal" { getData %W %A %a %T %W %X %Y %x %y }
50
dnd bindtarget .w "text/plain" <Drop> { drop %W %A %a %T %W %X %Y %x
%y %D } 50
dnd bindtarget .w "text/signal" <Drop> { drop %W %A %a %T %W %X %Y %x
%y %D } 50
Can you please let me know if I am missing something or if this really is
an issue?
Thanks,
Samyuktha
Nobody/Anonymous ( nobody ) - 2008-07-03 20:26
5
Open
None
Nobody/Anonymous
dropping (tk -> tk)
None
Public