Legend checkboxes

TeeChart for ActiveX, COM and ASP
Post Reply
ColinG
Newbie
Newbie
Posts: 6
Joined: Mon Aug 22, 2005 4:00 am
Location: University of Reading, UK
Contact:

Legend checkboxes

Post by ColinG » Mon Oct 17, 2005 11:06 am

The legend options for checkboxes and radio buttons in V7 are very useful. However, if you have checkboxes with all series names selected, and then use the Editor to switch to No Checkboxes, the legend changes to show the values for the first series with radio buttons. Changing back to Checkboxes works OK, but only the first series is then selected.

The Editor seems to be switching from Series to Values style when you just want to remove the checkboxes.

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 Oct 17, 2005 2:29 pm

Hi ColinG,

You are right, I've been able to reproduce it here and added this defect to our bug list to be fixed for future releases. In the meantime, you can do:

Code: Select all

Private Sub Command1_Click()
    With TChart1.Legend
        .CheckBoxes = Not .CheckBoxes
        .CheckBoxesStyle = cbsCheck
    End With
End Sub
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