Series Gradient problem
Posted: Thu Feb 04, 2010 9:37 am
Hello.
I have a problem using Gradient object.
I create a bar series from code and edit it setting gradient using ChartEditor.
Then I want to change my gradient color from code, and there appears exception.
Debugger says, that bsMySeries->Gradient for some reason is NULL.
I'm using version 8.06.
Please help.
Bart.
I have a problem using Gradient object.
I create a bar series from code and edit it setting gradient using ChartEditor.
Then I want to change my gradient color from code, and there appears exception.
Debugger says, that bsMySeries->Gradient for some reason is NULL.
Code: Select all
TBarSeries* bsMySeries = (TBarSeries*) Chart1->Series[0];
bsMySeries->Gradient->Visible = true;
bsMySeries->Gradient->StartColor = clGreen;
Please help.
Bart.