Small Problem with TChartListBox
Posted: Mon May 15, 2006 9:41 am
Hi,
Here it’s a list of small varios problem I meet:
#1 How to disabled the editor of TChartListBox ?
I didn’t found a property for this either a post on the forum.
I try to filter the F2 key in the OnKeyDown of the form (with KeyPreview), but the editor is display anyway.
#2 I want to select the clicked serie on a chart in the TChartListBox.
The problem is : I want only ONE serie selected at once.
So I set the TChartListbox.MultiSelect at false, and in the Chart.OnClickSeries I do this:
But I got two serie selected (in light blue) with this code. To solve the probleme, I have to select with the mouse in the TChartListbox one serie (in dark blue). THEN I can click on the chart to select one serie (in dark blue).
I tried to before unselectby code (by different way) the current selected serie, but it’s didn’t work either.
Context:
I use Serie.InternalUse, and I call by hand ChartListBox.UpdateSeries to refresh the display when I change the InternalUse flag.
I also set to nil ChartListBox.Chart before adding serie to avoid having flash in the list.
Can you help me? Something is wrong? Did I miss an option?
Thanks in advance,
Context:
TeeChart 7.05 win32
Delphi Architect 9.0
Here it’s a list of small varios problem I meet:
#1 How to disabled the editor of TChartListBox ?
I didn’t found a property for this either a post on the forum.
I try to filter the F2 key in the OnKeyDown of the form (with KeyPreview), but the editor is display anyway.
#2 I want to select the clicked serie on a chart in the TChartListBox.
The problem is : I want only ONE serie selected at once.
So I set the TChartListbox.MultiSelect at false, and in the Chart.OnClickSeries I do this:
Code: Select all
ChartListBox.Selected[Chartlistbox.Items.IndexOfObject(Series)] := true;
I tried to before unselectby code (by different way) the current selected serie, but it’s didn’t work either.
Context:
I use Serie.InternalUse, and I call by hand ChartListBox.UpdateSeries to refresh the display when I change the InternalUse flag.
I also set to nil ChartListBox.Chart before adding serie to avoid having flash in the list.
Can you help me? Something is wrong? Did I miss an option?
Thanks in advance,
Context:
TeeChart 7.05 win32
Delphi Architect 9.0