Nevron Forum

Showing the coordinates while the user is draggin the line

https://www.nevron.com/Forum/Topic7784.aspx

By Luis Miguel Perez Lopez - Wednesday, May 22, 2013

I have this Sub implemented in my application:


Public Sub SetEditMode()

Dim DataPointDragTool As New NDataPointDragTool()
Dim MyLine As MMSeriesLine = Me._Lines.ItemAt(0)

AddHandler DataPointDragTool.BeginDrag, AddressOf BeginDataPointDrag
AddHandler DataPointDragTool.EndDrag, AddressOf EndDataPointDrag
AddHandler DataPointDragTool.Drag, AddressOf DataPointDraging
AddHandler ChartControl.MouseDown, AddressOf OnChartMouseDown

DataPointDragTool.DepthAxisValue = 0
DataPointDragTool.AllowHorizontalDragging = False
DataPointDragTool.AllowVerticalDragging = True

If Not ChartControl.Controller Is Nothing Then
Call ChartControl.Controller.Tools.Clear()
Call ChartControl.Controller.Tools.Add(New NSelectorTool())
Call ChartControl.Controller.Tools.Add(DataPointDragTool)
End If

ChartControl.Cursor = New Cursor(My.Resources.Pan_1_24_n_i8.Handle)

End Sub


What I want is two things:

1)When this sub is fired the line(Myline) has to be selected (showing the datapoints).

2)Show to the user a kind of label that shows to the user the information of the coordinates ( I know how to get the coordinates) WHILE the user is dragging the line.
By Luis Miguel Perez Lopez - Thursday, May 23, 2013

I've got one solution using the NRichTextLabel.

Thanks