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
Customing mouse over marks question
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Customing mouse over marks question
Hello Michel,
+= operator in C# assigns events too. With Delphi you just have to assign a method to the event, something like this:
Hope this helps!
+= 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;
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 |