SelectedSeries - problem

TeeChart for ActiveX, COM and ASP
Post Reply
Ariel Tetro
Newbie
Newbie
Posts: 21
Joined: Mon Nov 03, 2003 5:00 am
Contact:

SelectedSeries - problem

Post by Ariel Tetro » Thu Dec 18, 2003 2:48 pm

Hi,

We are using version 6 of the AX in a c++ application. On version 5 once i set the property SelectedSeries of a ListBox with a valid series number, that series entry in the list box would have been "selected" and highlighted.
However, on version 6 this isn't the case - we do not see the series line being selected. Is this a known bug. Is there a way to workaround it?

Thank you in advance for any information you might provide,
Ariel

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

Post by Pep » Thu Dec 18, 2003 9:06 pm

Hi Ariel,

the SelectedSeries property is used to read the SeriesList index of the selected series. You cannot assign any value to it.

Josep Lluis Jorge
http://support.steema.com

Ariel Tetro
Newbie
Newbie
Posts: 21
Joined: Mon Nov 03, 2003 5:00 am
Contact:

Post by Ariel Tetro » Mon Dec 22, 2003 9:09 am

Hello,

Well when i see a function in my c++ code that says SetSelectedSeries i believe it means that i can set the selected series index. on version 5 i used the same code and it worked... I can see it working now, but not always...
If you cannot set a property's value, why is there a set function for it?

Ariel

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

Post by Pep » Tue Dec 23, 2003 9:01 am

Hi Ariel,

I'm sorry, I mistake me. This can be done (set the selected Series in the TeeListBox) using the following code :

Code: Select all

Private Sub Command1_Click()
  TeeListBox1.SelectedSeries = 1
  TeeListBox1.UpdateSeries
End Sub

Private Sub Form_Load()
  TeeListBox1.Chart = TChart1
  TChart1.AddSeries scLine
  TChart1.AddSeries scLine
  TChart1.Series(0).FillSampleValues 10
  TChart1.Series(1).FillSampleValues 10
End Sub
Josep Lluis Jorge
http://support.steema.com

Ariel Tetro
Newbie
Newbie
Posts: 21
Joined: Mon Nov 03, 2003 5:00 am
Contact:

Post by Ariel Tetro » Wed Dec 24, 2003 9:49 am

Thank you very much for your help.

Ariel

Post Reply