Profile Picture

Showing the coordinates while the user is draggin the line

Posted By Luis Miguel Perez Lopez 11 Years Ago

Showing the coordinates while the user is draggin the line

Author
Message
Luis Miguel Perez Lopez
Posted 11 Years Ago
View Quick Profile
Forum Member

Forum Member (29 reputation)Forum Member (29 reputation)Forum Member (29 reputation)Forum Member (29 reputation)Forum Member (29 reputation)Forum Member (29 reputation)Forum Member (29 reputation)Forum Member (29 reputation)Forum Member (29 reputation)

Group: Forum Members
Last Active: 11 Years Ago
Posts: 29, Visits: 1
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.





Similar Topics


Reading This Topic