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
Select fast line series when TChart is in 3D mode
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
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.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |