PieTool selects the wrong pie in Version 7

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
bsonnino
Newbie
Newbie
Posts: 10
Joined: Tue Mar 23, 2004 5:00 am

PieTool selects the wrong pie in Version 7

Post by bsonnino » Thu Apr 15, 2004 9:29 pm

I'm trying to use the PieTool to select the pie where the mouse is over, but it selects the wrong pie when the pie is 3D and the mouse is near the border.

To try this, just run Tee7New, in the PieTool Demo. In Tee6New, this works ok.

Bruno

Pep
Site Admin
Site Admin
Posts: 3273
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Thu Apr 15, 2004 10:16 pm

Hi Bruno,

yes, you're correct. Seems like we've modified something that has produced this new bug. I've added it on our defect list to be reviewed for the next maintenance release.

bsonnino
Newbie
Newbie
Posts: 10
Joined: Tue Mar 23, 2004 5:00 am

Post by bsonnino » Fri Apr 16, 2004 12:47 am

I've tracked the problem to TeeCanvas.Calculate2DPosition. It is miscalculating the projection of the point. This is due to invalid parameters calculated in TTeeCanvas3D.CalcTrigValues.

In V6 there is a conditional compile NEWXYZ, that was applied to V7 and gives this miscalculation. I think the solution is return to the calculation of V6, removing NEWXYZ

Bruno

Pep
Site Admin
Site Admin
Posts: 3273
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Fri Apr 16, 2004 5:52 am

Hi Bruno,

ok, thanks for your comments, we'll consider them.

Post Reply