Page 1 of 1

SelectedSeries - problem

Posted: Thu Dec 18, 2003 2:48 pm
by 9079594
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

Posted: Thu Dec 18, 2003 9:06 pm
by Pep
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

Posted: Mon Dec 22, 2003 9:09 am
by 9079594
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

Posted: Tue Dec 23, 2003 9:01 am
by Pep
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

Posted: Wed Dec 24, 2003 9:49 am
by 9079594
Thank you very much for your help.

Ariel