Loading last view chart with Sorted ON
Posted: Wed Jan 21, 2009 9:21 pm
Hi,
I've tried this code for loading the last viewed chart from a registry setting,
if(Chart->Series[var])
Chart->Series[var]->Active = true;
or
for(int i = 0; i<ChartListBox->Count; i++){
if(ChartListBox->Series->Name == var){
Chart->Series->Active = true;
break;
}
}
Both work fine when the ChartListBox Sorted is Off. However, when On, I cannot seem to find away of identifying the last used series?
Thanks, nsm.
I've tried this code for loading the last viewed chart from a registry setting,
if(Chart->Series[var])
Chart->Series[var]->Active = true;
or
for(int i = 0; i<ChartListBox->Count; i++){
if(ChartListBox->Series->Name == var){
Chart->Series->Active = true;
break;
}
}
Both work fine when the ChartListBox Sorted is Off. However, when On, I cannot seem to find away of identifying the last used series?
Thanks, nsm.