TGridBandTool Duplicate Name
Posted: Tue Mar 07, 2006 4:12 pm
Hi
When I apply a theme to my chart using the ApplyChartTheme method, 2 TGridBandTool objects are added to the grid's declaration, both with the same name GridBandTool1.
object GridBandTool1: TGridBandTool
Band1.Color = 15329769
Band2.Color = clWhite
AxisID = 2
end
object GridBandTool1: TGridBandTool
Band1.Color = 15329769
Band2.Color = clWhite
AxisID = 2
end
This does not cause an error immediately. However the user has the ability to then save the current chart settings to a database using SaveChartToStream. When the settings are later reloaded using LoadChartFromStream, I get an error message.
What is causing this behaviour?
When I apply a theme to my chart using the ApplyChartTheme method, 2 TGridBandTool objects are added to the grid's declaration, both with the same name GridBandTool1.
object GridBandTool1: TGridBandTool
Band1.Color = 15329769
Band2.Color = clWhite
AxisID = 2
end
object GridBandTool1: TGridBandTool
Band1.Color = 15329769
Band2.Color = clWhite
AxisID = 2
end
This does not cause an error immediately. However the user has the ability to then save the current chart settings to a database using SaveChartToStream. When the settings are later reloaded using LoadChartFromStream, I get an error message.
What is causing this behaviour?