[Question] HitTest for Pie3D |
Post Reply |
Author | |
Peter59
Groupie Joined: 19 July 2007 Status: Offline Points: 61 |
Post Options
Thanks(0)
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 |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
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
|
|
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.... |
|
Peter59
Groupie Joined: 19 July 2007 Status: Offline Points: 61 |
Post Options
Thanks(0)
|
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 See attached sample 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 |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi Peter, You are right, seems none of the 3D styles return Point 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.... |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Yes, for 3D HitTesting still not implemented. :(
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |