Profile Picture

Dragdrop on Shape

Posted By Thunis Kruger 11 Years Ago
Author
Message
Thunis Kruger
questionmark Posted 11 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)

Group: Forum Members
Last Active: 11 Years Ago
Posts: 6, Visits: 1
How do I retrieve the Shape I dropped on?

Private Sub document_DragDrop(args As NNodeDragEventArgs) Handles document.DragDrop
Dim sFormats As String() = args.Data.GetFormats
Dim a As String = args.Data.GetData(sFormats(0))

Dim obj As Object = args.HitNode.ParentNode

' Dim shapes As NNodeList = view.Document.HitTest(New NPointF(args.X, args.Y), -1, NFilters.Shape2D, view.ProvideDocumentHitTestContext())

If TypeOf obj Is NDocument Then

Return
Else
Dim n As NShape = CType(obj, NShape)
n.Text = a
args.Handled = True
End If

End Sub




Similar Topics


Reading This Topic