How can I drag Text from a DesktopListBox to a DesktopCanvas?
The following simple test-code works for dragging a row’s text to a DesktopTextArea, but not to a DesktopCanvas:
Listbox DragRow Event:
drag.text = "TEST"
return true
Canvas Opening Event: me.AcceptTextDrop
Canvas DropObject Event:
Do
If obj.TextAvailable Then
var s as string = obj.Text
End If
Loop Until Not obj.NextItem
The DropObject Event does not fire at all.
Tested with Xojo 2022 R3.
What I’ve done years ago was to print the rows into a Picture and Draw that Picture in the target Canvas… (during the drag, I displayed the created Picture).