TSeriesBandTool with C++Builder 10.1
Posted: Tue Sep 11, 2018 5:36 am
I am trying to dynamically create a TSeriesBandTool tool in C++Builder 10.1 using code such as ...
I am using TeeChart Pro v2017.21.170329 32 bit.
The code compiles and runs but the area between MinLine and MaxLine is not coloured.
Similar code works in another form where the TSeriesBandTool is statically created using the Chart Editor.
Can you help please.
Code: Select all
TSeriesBandTool* ChartTool = new TSeriesBandTool(NULL);
TTeeCustomTool* customTool = Chart->Tools->Add(ChartTool);
TSeriesBandTool* Tool = dynamic_cast<TSeriesBandTool*>(customTool);
Tool->Series = MaxLine;
Tool->Series->Legend->Visible = false;
Tool->Series2 = MinLine;
Tool->Series2->Legend->Visible = false;
Tool->Brush->BackColor = TColor(16051931);
Tool->DrawBehindSeries = true;
Tool->Transparency = 50;
Tool->Active = true;
The code compiles and runs but the area between MinLine and MaxLine is not coloured.
Similar code works in another form where the TSeriesBandTool is statically created using the Chart Editor.
Can you help please.