Customing mouse over marks question

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
kpi
Newbie
Newbie
Posts: 2
Joined: Fri Mar 27, 2009 12:00 am

Customing mouse over marks question

Post by kpi » Mon Jul 27, 2009 2:58 pm

Hello,

We use delphi prism from codegear with the TeeChart Pro v3 for Visual Studio .NET into a WEB Application.

We would like to have the same running of the sample "Customing mouse over marks" in using a delphi code and not a C# code.
We have a problem to translate the following code line :
((Steema.TeeChart.Tools.SeriesHotspot)ch1.Tools[1]).GetHTMLMap += new Steema.TeeChart.Tools.SeriesHotspotEventHandler(_Default_GetHTMLMap);

We have written :
Steema.TeeChart.Tools.SeriesHotspot (ch1.Tools[1]).GetHTMLMap := Steema.TeeChart.Tools.SeriesHotspot (ch1.Tools[1]).GetHTMLMap +
new Steema.TeeChart.Tools.SeriesHotspotEventHandler(_Default_GetHTMLMap);

The iis server send the following error : impossible to enter the field of event subjacent

Can you help us.
Best regards

Michel

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

Re: Customing mouse over marks question

Post by Narcís » Mon Jul 27, 2009 3:10 pm

Hello Michel,

+= operator in C# assigns events too. With Delphi you just have to assign a method to the event, something like this:

Code: Select all

(ch1.Tools[1] as Steema.TeeChart.Tools.SeriesHotspot).GetHTMLMap := _Default_GetHTMLMap;
Hope this helps!
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

Post Reply