If you ask in the Italian forum, you don't have to fight with English.pardon my English,
Hard to understand how it works.Just wait "a moment". I downloaded the Erel's b4xlib version and his example...
Sub btnMoveMe_MousePressed (EventData As MouseEvent)
If EventData.SecondaryButtonPressed Then
Log("right button pressed")
DragAndDrop1.MakeDragSource(Sender, "DragSource")
' I don't know what parameters the SetDragModeAndData requires but I think it is necessary.
' DragAndDrop1.SetDragModeAndData(TransferMode.MOVE, Array As String("I don'tknow"), Array(Sender))
End If
End Sub
No, it isn't. I did it roughly, it's not the right way.and almost perfect
This is a secondary problem; "we" (Erel or @stevel05 ?) must solve the first one, before.must be able to be put back on the starting panel
Thank you, Steve.The Java drag and drop Class is intended for use with Data. I haven't tried it with nodes. It may be possible to use part of it as a base, but it may also be easier to write the functionality as a new class. I will take a look a bit later.
As are usually mine ?Here is a quick and dirty example
Because it needs some validation on the dragging and modding for specific purposes.it is "dirty"
DragDrop.Initialize(Me)
DragDrop.MakeDragSource(Button1,"BDrag")
DragDrop.MakeDragSource(Button2,"BDrag")
DragDrop.MakeDragSource(Pane3,"BDrag")
DragDrop.MakeDragTarget(Pane1,"PDrag")
DragDrop.MakeDragTarget(Pane2,"PDrag")