Set ColorBandTool StartValue and EndValue by code

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
MT64
Newbie
Newbie
Posts: 5
Joined: Mon Mar 08, 2004 5:00 am

Set ColorBandTool StartValue and EndValue by code

Post by MT64 » Thu Jun 17, 2004 10:04 am

I wish to set ColorBandTool StartValue and EndValue by code with custom
Axis(vertical,automatic=true).
for example:
ChartTool1.StartValue:=Chart1.CustomAxes[0].Maximum;
ChartTool1.EndValue:=Chart1.CustomAxes[0].Minimum;
Which event of chart can be used for this code ? Chart1AfterDraw ?

And if can I use 100%/0% to set ChartTool1.StartValue,EndValue in stead axis max/min value?

mkaul
Newbie
Newbie
Posts: 9
Joined: Fri Nov 15, 2002 12:00 am
Location: Germany
Contact:

Post by mkaul » Thu Jun 17, 2004 3:01 pm

ChartTool1.StartValue:=Chart1.CustomAxes[0].Maximum;
ChartTool1.EndValue:=Chart1.CustomAxes[0].Minimum;
Which event of chart can be used for this code ? Chart1AfterDraw ?
I use Chart1.BeforeDrawAxes for axis relevant actions

regards
Martin

Post Reply