Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 2077

Summary: The Linear Gauge series doesn't changes face color (backcolor)
Product: ActiveX TeeChart Reporter: sandra pazos <sandra>
Component: SeriesAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED NOTABUG    
Severity: normal CC: pep
Priority: Normal    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description sandra pazos 2018-08-17 10:34:47 EDT
The Linear Gauge series doesn't changes face color (backcolor) 
Private Sub Form_Load()
TChart1.Legend.Visible = False
TChart1.Series(0).asLinearGauge.Face.Color = vbWhite
TChart1.Series(0).asLinearGauge.Face.Brush.Gradient.Visible = False
TChart1.Series(0).asLinearGauge.Face.Brush.BackColor = vbWhite
End Sub
Comment 1 sandra pazos 2018-08-17 10:41:11 EDT
The problem affect to the linear gauge series font text, too.
Comment 2 pep jorge 2020-04-06 12:57:16 EDT
In order to change the back color via code you have to set the ShapeVisible property to True first, as Face is invisible by default.
The following code works fine here :

TChart1.AddSeries scLinearGauge
TChart1.Panel.Gradient.Visible = False
TChart1.Legend.Visible = False
TChart1.Series(0).asLinearGauge.Face.ShapeVisible = True
TChart1.Series(0).asLinearGauge.Face.Color = vbWhite
TChart1.Series(0).asLinearGauge.Face.Brush.Gradient.Visible = False
TChart1.Series(0).asLinearGauge.Face.Brush.BackColor = vbWhite