PDA

View Full Version : dnd.StatusProxy.setStatus doesn't work as expected



zrs99@hotmail.com
30 Nov 2011, 3:10 AM
I have overwritten dragMove in DNDListener and add the listner to TreePanelDropTarget
then set status in dragMove as below:
e.getStatus().setStatus( false );

however the drag feedback still indicate "allow drop", it should show as "no drop".

In TreePanelDropTarget.showFeedback, it will call handleAppend as I am using Append. and in handleAppend, you will always set the status as below
event.getStatus().setStatus(true);