Page 1 of 1

Select fast line series when TChart is in 3D mode

Posted: Thu Jan 13, 2005 5:55 am
by 9235196
I use this code, to detect if a fast line series is being selected.
If it is selected then pop-up a new dialog.

void __fastcall TForm1::ChartClick(TObject *Sender)
{
int i;
int iIndex;

for(i = 0; i < aChart->SeriesCount; i++)
{
iIndex = aChart->Series->GetCursorValueIndex();
}

if(iIndex > -1)
{
//do something
}
}

Now, i adjust the depth of the chart and then rotate. But I can not click the line series, I mean, i click the line series but it doesn't pop-up anything. And when i click on a blank area near the series, it does pop-up something.

I have save the image about this condition. How to submit?

Thank you

Herman

Posted: Thu Jan 13, 2005 9:06 am
by narcis
Hi Herman,

Wouldn't it be better for you to use the OnClickSeries event? This event does the work you are coding for you suppling some of the parameters you need.

Posted: Thu Jan 13, 2005 10:52 am
by 9235196
ah typo...i mean double click event. I have used the on click event for another thing.