Showing the coordinates while the user is draggin the line


Author
Message
Luis Miguel Perez Lopez
Luis Miguel Perez Lopez
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
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.

Luis Miguel Perez Lopez
Luis Miguel Perez Lopez
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
Posts: 29, Visits: 1
I've got one solution using the NRichTextLabel.

Thanks
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search