Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Chart Control
  New Posts New Posts RSS Feed - [Question] HitTest for Pie3D
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[Question] HitTest for Pie3D

 Post Reply Post Reply
Author
Message
Peter59 View Drop Down
Groupie
Groupie


Joined: 19 July 2007
Status: Offline
Points: 61
Post Options Post Options   Thanks (0) Thanks(0)   Quote Peter59 Quote  Post ReplyReply Direct Link To This Post Topic: [Question] HitTest for Pie3D
    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
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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....
Back to Top
Peter59 View Drop Down
Groupie
Groupie


Joined: 19 July 2007
Status: Offline
Points: 61
Post Options Post Options   Thanks (0) Thanks(0)   Quote Peter59 Quote  Post ReplyReply Direct Link To This Post 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

Peter

Product: Xtreme SuitePro (ActiveX) version 15.2.1
Platform: Windows 7 64 Bit
Language: Visual Basic 6.0 SP6
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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....
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 22 February 2011 at 1:00pm
Yes, for 3D HitTesting still not implemented. :(
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.