Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Chart Control
  New Posts New Posts RSS Feed - How to get ChartControl.HitTest on all Area?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to get ChartControl.HitTest on all Area?

 Post Reply Post Reply
Author
Message
Alexey2 View Drop Down
Senior Member
Senior Member


Joined: 24 September 2006
Status: Offline
Points: 124
Post Options Post Options   Thanks (0) Thanks(0)   Quote Alexey2 Quote  Post ReplyReply Direct Link To This Post Topic: How to get ChartControl.HitTest on all Area?
    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?

Back to Top
Alexey2 View Drop Down
Senior Member
Senior Member


Joined: 24 September 2006
Status: Offline
Points: 124
Post Options Post Options   Thanks (0) Thanks(0)   Quote Alexey2 Quote  Post ReplyReply Direct Link To This Post Posted: 25 March 2011 at 8:21am
Also the same request for ToolTipText of points, when the mouse pointer is located over colored area.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.