Print Page | Close Window

[Question] HitTest for Pie3D

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=17939
Printed Date: 04 May 2024 at 3:10am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [Question] HitTest for Pie3D
Posted By: Peter59
Subject: [Question] HitTest for Pie3D
Date Posted: 22 February 2011 at 5:52am
Hi,

HitTest method returns an object of type ChartContent for a Pie3D chart when clicking a segment of the pie.

How can i determine which ChartSeriesPoint was clicked in detail?

Thanks, Peter



-------------
Product: Xtreme SuitePro (ActiveX) version 15.2.1
Platform: Windows 7 64 Bit
Language: Visual Basic 6.0 SP6



Replies:
Posted By: Aaron
Date Posted: 22 February 2011 at 7:42am

Hi Peter,

Something like:

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

    Dim chartElementHitTest As ChartElement
    Dim seriesPointHitTest As ChartSeriesPoint
    
    Set chartElementHitTest = Me.wndChartControl.HitTest(x, y)
      
    If TypeOf chartElementHitTest Is ChartSeriesPoint Then
        Set seriesPointHitTest = chartElementHitTest 
              seriesPointHitTest.Special = Not seriesPointHitTest.Special
    End If
 
End Sub
 
 
Hope this helps Wink
 
 
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: Peter59
Date Posted: 22 February 2011 at 9:10am
Hi Aaron,

thanks for suggestion.

As I mentioned, HitTest does not returns a ChartSeriesPoint object when clicking a segment in a Pie 3D - otherwise it wouldn't have been a problem Wink

See attached sample uploads/3156/Sample_ChartControl_Pie3D_HitTest.zip - uploads/3156/Sample_ChartControl_Pie3D_HitTest.zip

Peter



-------------
Product: Xtreme SuitePro (ActiveX) version 15.2.1
Platform: Windows 7 64 Bit
Language: Visual Basic 6.0 SP6


Posted By: Aaron
Date Posted: 22 February 2011 at 9:58am

Hi Peter,

You are right, seems none of the 3D styles return Point Confused I think CJ still needs to implement it?

Thanks
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: Oleg
Date Posted: 22 February 2011 at 1:00pm
Yes, for 3D HitTesting still not implemented. :(

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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