AreaBrush bug

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

AreaBrush bug

Post by thatnerdyguy » Fri Apr 20, 2007 7:35 pm

Using TChart ActiveX 7.0.1.3

If you set the AreaBrush property to the enumeration value "80% Fill" (aka 8 ) or some other enum value above that, then if you try to set it to something below "80% fill", like "solid", it doesn't work. Now only the values above 8 (aka "80% fill") will be shown.

The following VB code shows the problem:

Dim i As Long

Private Sub Command1_Click()
i = i + 1
TChart1.Series(0).asArea.AreaBrush = i
If i > 10 Then
i = 0
End If
End Sub

When you click on the button associated with this handler, you cycle through the first 10 fill types, then the fill doesn't change for 7 clicks, then you cycle through the last 3, and repeat.

Is this indeed a bug, or am I missing something?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Apr 23, 2007 3:09 pm

Hi thatnerdyguy,

This problem is because some of the brush options are bitmaps. Since AreaChartBrush doesn't exist, its image couldn't be cleared and thus brushes not being bitmaps couldn't be reassigned.

AreaChartBrush has been added for v7.0.1.4 so that you will be able to do something like this:

Code: Select all

If i > 10 Then
     i = 0
     TChart1.Series(0).asArea.AreaChartBrush.ClearImage
End If
All being well, we expect v7.0.1.4 being out tomorrow.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply