Page 1 of 1

Customing mouse over marks question

Posted: Mon Jul 27, 2009 2:58 pm
by 13052884
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

Re: Customing mouse over marks question

Posted: Mon Jul 27, 2009 3:10 pm
by narcis
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!