gtk drag and drop behavior under windows 2000, wine



I know that drag and drop support is not really complete in the win32
gtk target, but here are some interesting observations.  I used the
gtkmm c++ bindings, but I think the problems are in gtk+ itself.

I have set up a program where you can drag something from a cell (an
eventbox) to another.  In this case it is to allow you to drag chess
pieces.  I've set it up to be very simple.  When the drag starts in a
cell, i attach an image of the piece to the dnd cursor and make a note
of things in global data store (global to my ui anyway).  Then when you
reach a valid cell marked "droppable," then drop event is sent and I
used the stored data to set the piece and end the drag.  I don't use any
of the dnd protocol.  There's no request data and send data.  Just drag
begin and drag drop and drag end.  

This works fine under Linux.  On Windows 2000, the drag begin never even
happens, but mouse click events are received just fine.  I've set up
buttons 4 and 5 to be captured, just for fun (the scroller) and they are
detected just fine.  Under WINE, the drag and drop stuff works, except
for the icon under the cursor, but that's probably WINE's fault. 
However WINE won't pick up buttons 4 and 5, although sometimes in
another part of the window those events are received at coordinates a
long ways from the current mouse position.  (Again, a WINE problem).

Question.  Why does drag and drop work under WINE, but not Windows
2000?  Same libraries, same exe.

Michael


-- 
Michael Torrie <torriem chem byu edu>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]