Page 1 of 1
CalcIncrement returns wrong value
Posted: Tue Sep 15, 2009 4:58 am
by 12054002
Hi,
When we call CalcIncrement, it returns the wrong value. We tried calling Refresh, Repaint, Invalidate before calling CalcIncrement, but in vain. Can you give us a solution? We use TeeChart 8.06 with CodeGear C++ builder 2009.
Thanks,
Mahendran
Re: CalcIncrement returns wrong value
Posted: Tue Sep 15, 2009 7:28 am
by narcis
Hi Mahendran,
You can try calling
Draw method. Code below works fine for me here.
Code: Select all
uses Series;
procedure TForm1.FormCreate(Sender: TObject);
begin
Chart1.AddSeries(TLineSeries.Create(Self));
Chart1[0].FillSampleValues(100);
Chart1.Draw;
Caption:=FloatToStr(Chart1.Axes.Bottom.CalcIncrement);
end;
Re: CalcIncrement returns wrong value
Posted: Tue Sep 15, 2009 7:53 am
by 12054002
Hi Narcis,
Thank you for the reply.
I tried calling Draw as well. But it is not working. We have mulitple views one behind the another, if the chart is in the background view, we face this problem. Any ideas what would be the issue?
Chart min value is 110 and max is 525. But when we call CalcIncrment it returns the value 500.
Thanks,
Mahendran
Re: CalcIncrement returns wrong value
Posted: Tue Sep 15, 2009 8:00 am
by narcis
Hi Mahendran,
Can you please a simple example project we can run "as-is" to reproduce the problem here?
Thanks in advance.
Re: CalcIncrement returns wrong value
Posted: Tue Sep 15, 2009 9:33 am
by 12054002
Hi Narcis,
I am sorry that ours is a complex project where we create chart controls during runtime and place it in multiple views.
So I couldn't create a sample project to repro the issue. Is there any other way out?
Thanks,
Mahendran
Re: CalcIncrement returns wrong value
Posted: Tue Sep 15, 2009 12:13 pm
by narcis
Hi Mahendran,
I'm afraid not. It's very difficult for us to provide a solution if we can not reproduce the problem here. It would be very helpful if you could arrange a simple example project we can run "as-is" to reproduce the problem here.
Thanks in advance.