Page 1 of 1

Bug in TPieSeries.CalcClickedPie v7.05

Posted: Tue Feb 07, 2006 12:15 pm
by 9342681
Hi all!
I have a problem with using CalcClickedPie function. It returns me a wrong Pie slice for 3D Pie Series.
Do you have a fast fix for that?
Thanks a lot

Posted: Wed Feb 08, 2006 10:43 am
by narcis
Hi Aleksey,

It works fine here using v7.06, which is the latest version available and contains several bug fixes on that aspect, and the code below. Which TeeChart version are you using? If you use v7.06 please send us some code or an example we can run "as-is" to reproduce the problem here.

You can post your files at [url]news://www.steema.net/steema.public.attachments[/url] newsgroup.

Code: Select all

procedure TForm1.FormCreate(Sender: TObject);
begin
  Series1.FillSampleValues();
//  Series1.Circled:=true;
end;

procedure TForm1.Series1Click(Sender: TChartSeries; ValueIndex: Integer;
  Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
begin
  Chart1.Title.Text[0]:=IntToStr(Series1.CalcClickedPie(X,Y));
end;

Posted: Wed Feb 08, 2006 1:04 pm
by 9342681
Hi NarcĂ­s

I use v 7.5. Sorry I didn't describe my problem well. I'll try again. It works OK, but when you use a 3D pie and click on points near his mostly left or right bound the function doesn't work right. It seems that when you move mouse away from the pie center to the left (right), in some point it stops work. Try it in your code.

Best Regards

Quest Software GUI developer
Aleksey Timonin

Posted: Wed Feb 08, 2006 1:14 pm
by narcis
Hi Aleksey,

Yes, we are aware of those problems and they were fixed in v7.06. Can you please test if this version works at your end?