B4J Question B4XView, Dragged view pane1 to pane2

ivanomonti

Expert
Licensed User
Longtime User
I need to make a MouseDragged to post a view from one panel to another, is it possible?
 

Attachments

  • 2020-05-08_001948.png
    2020-05-08_001948.png
    23.7 KB · Views: 370

ivanomonti

Expert
Licensed User
Longtime User
[QUOTE = "LucaMs, post: 735157, membro: 51832"]
1 - Pensavo avessi bisogno di un oggetto DragAndDrop per ogni vista (nodo) da trascinare (o modificarlo ogni volta). Anziché:
[CODE = b4x] DragDrop.Initialize (Me)
DragDrop.MakeDragSource (Button1, "BDrag")
DragDrop.MakeDragSource (Button2, "BDrag")
DragDrop.MakeDragSource (Pane3, "BDrag")
DragDrop.MakeDragTarget (Pane1, "PDrag")
DragDrop.MakeDragTarget (Pane2, "PDrag")
[/CODICE]
[/ CITAZIONE]

io avevo provato passando array di oggetti array as objet(button1,button2,button3,...) ma mi dava errore di sintassi

I tried passing arrays of objects array as objet(button1,button2,button3,...) but it gave me syntax error
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
I stil don't understand the parameter DataObjects() As Object
In this instance it is not being accessed in the DragDropped sub, so maybe we are just getting away with it. I can't remember at the moment what it should be.
 
Upvote 0
Top