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 640 - Legend and TChartListBox checkbox style synchronization
Summary: Legend and TChartListBox checkbox style synchronization
Status: RESOLVED FIXED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Legend (show other bugs)
Version: 140220
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL: http://www.teechart.net/support/viewt...
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-17 07:35 EDT by yeray alonso
Modified: 2014-03-17 09:50 EDT (History)
2 users (show)

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yeray alonso 2014-03-17 07:35:16 EDT
A customer in the support forums reports this:

"I am using your latest version of TChartPro with Embarcadero Delphi XE5.

I am having a little trouble with a TChartListBox. I'm hoping you can tell me if this is a bug or is working as designed.

I have a TChart and a corresponding TChartListBox. When I bring up the TChart Editor and go to Legend--> Style, there is a combo box that allows me to select "No check boxes", "Check boxes", or "Radio buttons".

With the "No check box" selection which is the default, my chart legend does not have check boxes and my corresponding TChartListBox does have check boxes which allow me to select/deselect the series in the chart.

If I then switch to "Radio buttons" I get radio buttons on both my chart legend and in my TChartListBox. This is as I expected.

However, when I switch back to "No check boxes", the radio buttons go away on my chart legend but they remain as Radio buttons on my TCharListBox. I would expect it to return to check boxes in the TChartListBox since that was the default for "No check boxes".

The workaround I came up with in order to return to no check boxes on my legend and check boxes in my TChartListBox is to go from "Radio Buttons" to "Check boxes" to "No check boxes". However, this process seems to have a bug in it too. When I go from "Radio buttons" to "Check boxes" the chart legend switches to check boxes but the TChartListBox continues to have Radio buttons...until I actually click on one of the radio buttons still in the TChartListBox. Then it changes to check boxes, and at that point if I select "No check boxes" I get no check boxes in my legend and check boxes in my TChartListBox, which is what I wanted all along. "
Comment 1 david berneda 2014-03-17 09:50:50 EDT
Fixed. 

ChartListbox will now show checkboxes when Legend CheckBoxes=False or when CheckBoxesStyle is cbsCheck.