Page 1 of 1
Specific features info please
Posted: Wed Mar 04, 2015 9:00 pm
by 13052810
Hi,
We're currently running version: v2013.0.1.4.131120
Does the latest version of the ActiveX TChart support or provide the following:
1. RectangleToolClicked.Index?
2. Axis Title Position?
3. A method to view the stored x-y data value(s) of any point on any line/fastline in the form of a tooltip with a cursor/pointer?
Thanks!
Re: Specific features info please
Posted: Thu Mar 05, 2015 9:14 am
by yeray
Hello,
tirby wrote:1. RectangleToolClicked.Index?
If you want to know what tool has been clicked at OnRectangleTooClick event, you can loop into the tools in a chart and check which one has been clicked with the Clicked function. Ie:
Code: Select all
Private Sub TChart1_OnRectangleToolClick(ByVal Button As TeeChart.EMouseButton, ByVal Shift As TeeChart.EShiftState, ByVal X As Long, ByVal Y As Long)
Dim i As Integer
For i = 0 To TChart1.Tools.Count - 1
If TChart1.Tools.Items(i).ToolType = 25 Then
If TChart1.Tools.Items(i).asRectangle.clicked(X, Y) Then
MsgBox "RectangleTool clicked. Tool Index: " + Str$(i)
End If
End If
Next i
End Sub
tirby wrote:2. Axis Title Position?
I see in TeeChart VCL you can access the Axis Title ShapeBounds. Is this what you want? What do you exactly need it for?
tirby wrote:3. A method to view the stored x-y data value(s) of any point on any line/fastline in the form of a tooltip with a cursor/pointer?
Take a look at
this interpolation example from NarcĂs.
Is this what you are trying to achieve?