Index

From: Pep
Subject: Re: Scrolling Problem
Date: Wed, 2 Jun 2004 12:59:26 +0200
Newsgroup: public.teechart6.general  

Hi Rina,

see the David's reply at Borland "public.delphi.reporting-charting"
newsgroup for the solution.

Best Regards
Josep Lluis Jorge
http://support.steema.com


"Rina Agarwal" escribió en el mensaje
news:eyAJ1U8REHA.1820@TEEPC.Steema.local...
> When scrolling a teechart throgh TScrollBar i am receiving an error:-- '
> Axis Minimum Value cannot be greater than Axis maximum value ' .
> Following is the code for calculating Scrollbar Max, SmallChange , Large
> change. My bottom Axis is set to datetime and i m plotting a chart to
> represent daily share prices. When Scrolling by clicking arrow at the side
> of scroll bar.. the code works perfectly fine but while scrolling by
moving
> the thumb tab it is giving the error.
>
> ScrollBar1.PageSize:=0;
>
> ScrollBar1.Max := Round(SourceSeries.MaxXValue) -
> Round(SourceSeries.MinXValue) -
(Round(NSESourceChart.BottomAxis.Maximum) -
> Round(NSESourceChart.BottomAxis.Minimum));
> ScrollBar1.SmallChange := 30;
> ScrollBar1.LargeChange := 30;
>
> procedure TfrmNSEChild.ScrollBar1Change(Sender: TObject);
> var
> differ:integer;
> begin
>
> differ := Round(NSESourceChart.BottomAxis.Maximum -
> NSESourceChart.BottomAxis.Minimum);
> NSESourceChart.BottomAxis.Minimum := round(SourceSeries.MinXValue) +
> (ScrollBar1.Position) ;
> NSESourceChart.BottomAxis.Maximum := NSESourceChart.BottomAxis.Minimum
+
> differ;
> end;
>
> Please help.
> Rina
>
>