Tuesday, October 27, 2009

Dynamically moving scroll bar when dragging an object over an SWT Tree.

Dynamically moving scroll bar when dragging an object over an SWT Tree.

In the dragOver() event write the following statements:

event.feedback |= DND.FEEDBACK_SCROLL;

For expanding a tree, when mouse hover over it during dragging an object:

event.feedback |= DND.FEEDBACK_EXPAND;

The more details can be found at the below link

http://www.eclipse.org/articles/Article-SWT-DND/DND-in-SWT.html

No comments:

Post a Comment