Page 1 of 1

difficult click POINT3D, when it rotated

Posted: Wed Apr 28, 2010 1:33 pm
by 15655333
have chart with serieses POINT3D. event CLICK not always work, when chart rotate with some angle. and if event works, ScreenPointToValuePoint return wrong PointDouble, value X, Y deffer from real value of CLICKED POINT on series

Code: Select all

    private void points3D_Click(object sender, MouseEventArgs e)
    {
      Steema.TeeChart.Styles.Points3D points3D = sender as Steema.TeeChart.Styles.Points3D;
      Steema.TeeChart.Drawing.PointDouble pd = points3D.ScreenPointToValuePoint(e.X, e.Y);
}
what do i wrong action?

Re: difficult click POINT3D, when it rotated

Posted: Thu Apr 29, 2010 10:14 am
by narcis
Hi petroV,

I'm afraid this is a known problem converting 2D screen coordinates to 3D rotated coordinates. Neither GDI nor GDI+ provide methods for doing this transformation and therefore it's very difficult for series to return correct values in such circumstances.

Re: difficult click POINT3D, when it rotated

Posted: Thu Apr 29, 2010 10:36 am
by 15655333
thanks you. willn't use this event on 3d series.