Problem with OnClickPointer event

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
rackerson
Newbie
Newbie
Posts: 22
Joined: Mon Mar 08, 2004 5:00 am
Location: Edison, New Jersey USA

Problem with OnClickPointer event

Post by rackerson » Fri Nov 17, 2006 7:17 pm

Hi,

I am creating a TLineSeries with visible points. I need for the user to be able to click on any one of the points in the series and display detailed information about what the point represents. I thought I could simply add code to the OnClickPointer event - WRONG!

Whenever I add code to the OnClickPointer event for this series, Delphi raises the following exception when I run the program:
"Project Project1.exe raised exception class EReadError with message 'Property OnClickPointer does not exist'. Process stopped. Use Step or Run to continue."

Any idea why this is happening? I examined the code and everything *looks* ok.

I am using Delphi 6 Enterprise with TeeChart Pro 7.07.

Thanks in advance.

Rich

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

Post by Narcís » Mon Nov 20, 2006 9:24 am

Hi rackerson,

This is because in v7 TLineSeries doesn't have the OnClickPointer event. However we have added it in TeeChart v8 VCL which is the version we are currently working ing.
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

rackerson
Newbie
Newbie
Posts: 22
Joined: Mon Mar 08, 2004 5:00 am
Location: Edison, New Jersey USA

Post by rackerson » Mon Nov 20, 2006 5:42 pm

Hi Narcis,

Thanks for the quick reply but I am afraid I don't quite understand the answer. If you look at the following screen shot below, you will see that when I create a TLineSeries, it DOES have an OnClickPointer event. I am not running the version 8 beta, I only have version 7.07 installed.

Image

Rich

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

Post by Narcís » Tue Nov 21, 2006 9:51 am

Hi Rich,

We have checked this and the event isn't public for v7 but exists. It can be used like this:

Code: Select all

procedure TForm1.FormCreate(Sender: TObject);
begin
Series1.OnClickPointer:=Series2ClickPointer;
end;

procedure TForm1.Series2ClickPointer(Sender: TCustomSeries; ValueIndex, X,
  Y: Integer);
begin
showmessage('xx');
end;
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

rackerson
Newbie
Newbie
Posts: 22
Joined: Mon Mar 08, 2004 5:00 am
Location: Edison, New Jersey USA

Post by rackerson » Tue Nov 21, 2006 4:00 pm

Ah okay. I should have thought of trying that.

Thanks!

Post Reply