Print Page | Close Window

How to get ChartControl.HitTest on all Area?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Chart Control
Forum Description: Topics Related to Codejock Chart Control
URL: http://forum.codejock.com/forum_posts.asp?TID=18119
Printed Date: 23 November 2024 at 12:46pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to get ChartControl.HitTest on all Area?
Posted By: Alexey2
Subject: How to get ChartControl.HitTest on all Area?
Date Posted: 25 March 2011 at 8:02am

The following code from your Chart sample:

Private Sub ChartControl_MouseMove(Button As Integer, Shift As Integer, x As Long, y As Long)

Dim Element As ChartElement
Set Element = ChartControl.HitTest(x, y)

Dim Point As ChartSeriesPoint
On Error Resume Next
Set Point = Element

If (Not Point Is Nothing) Then
Debug.Print "Point " & Point.Value(0)
End If

End Sub

It works fine for ChartBarSeriesStyle:

Set ChartControl1.Content.Series(0).Style = New ChartBarSeriesStyle

Could you please add to the next release the possibility to get HitTest over all colored area, if the series style is ChartAreaSeriesStyle?




Replies:
Posted By: Alexey2
Date Posted: 25 March 2011 at 8:21am
Also the same request for ToolTipText of points, when the mouse pointer is located over colored area.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net