[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] SWT / Drag and drop with custom cursors
|
[x-post to comp.lang.java.gui]
I am new to SWT. I want to implement a feature in my app to allow users to
drag shapes of various sizes around a work area. I have seen the SWT drag
and drop classes, but these seem to be focused on traditional D&D activities
like cutting and pasting text. I want the mouse cursor to take the form of
the shape that is being dragged, so that the user can see how the end result
will look in the document.
Can anyone give me pointers on how to implement this? In the old days in
Windows I would have done this using GDI and double buffered images and
BitBlt() the bitmaps into the work area, and mouse move events would cause a
repaint of the work area. I'd like a more elegant solution.