AreaChartBrush not returning what I set it to

TeeChart for ActiveX, COM and ASP
Post Reply
thatnerdyguy
Newbie
Newbie
Posts: 14
Joined: Thu May 18, 2006 12:00 am

AreaChartBrush not returning what I set it to

Post by thatnerdyguy » Tue Jun 05, 2007 6:42 pm

AreaChartBrush doesn't seem to properly return the correct brush style when you set it to certain styles

The following code demonstrates the problem:

Code: Select all

Private Sub Form_Load()
    TChart1.AddSeries scArea
    TChart1.Series(0).asArea.AreaChartBrush.Style = bsCrossSmall
    If TChart1.Series(0).asArea.AreaChartBrush.Style = bsCrossSmall Then
        MsgBox "It Worked!"
    Else
        MsgBox "Uh-oh"
    End If
End Sub
If there a way to get back the value that I put in AreaChartBrush?

Yeray
Site Admin
Site Admin
Posts: 9601
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Wed Jun 06, 2007 8:19 am

Hi thatnerdyguy,

We could reproduce the issue here and this seems to be a bug. We've added it (TA05012240) to our defect list to be fixed for future releases.

We can say by now which styles work well and which not:

NOT WORKING
bsBackCrossSmall
bsBackDiagSmall
bsCrossSmall
bsDiagSmall
bsFill10
bsFill20
bsFill40
bsFill60
bsFill80
bsHorizSmall
bsVertSmall
bsZigZag

WORKING
bsClear
bsCross
bsDiagCross
bsFDiagonal
bsBDiagonal
bsHorizontal
bsVertical
bsSolid

Thanks for reporting this.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Fri Jun 22, 2007 5:22 pm

Hi,

about this issue, let you know that this is as designed, as brush styles different of (bsSolid, bsClear, bsHorizontal, bsVertical, bsFDiagonal, bsBDiagonal, bsCross, bsDiagCross) are not a standard brush styles they cannot return a correct index nor change its pen color for example.

These brush styles are applied by loading a custom image into the IBrush.

I'm afraid we cannot control the index ( return anyone ) when brush style applied is not a standard brush.

Post Reply