Select fast line series when TChart is in 3D mode

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Herman
Newbie
Newbie
Posts: 56
Joined: Tue Dec 07, 2004 5:00 am

Select fast line series when TChart is in 3D mode

Post by Herman » Thu Jan 13, 2005 5:55 am

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Jan 13, 2005 9:06 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Herman
Newbie
Newbie
Posts: 56
Joined: Tue Dec 07, 2004 5:00 am

Post by Herman » Thu Jan 13, 2005 10:52 am

ah typo...i mean double click event. I have used the on click event for another thing.

Post Reply