
Index
From: Karl Mikesell SmartSignal
Subject: Re: seriesHotspot.GetHTMLMap event does not fire on import
Date: Tue, 14 Aug 2007 10:08:53 -0500
Newsgroup: steema.public.teechart8.dotnet
To get event to fire, it was necessary to add the eventhandler to each
imported series, but by doing so the chart on page which was zoomed is lost;
other charts on page or OK and formatting correctly.
By doing another post-back the zoomed chart now appears correctly.
To reproduce add two charts to page, set ZoomTool & SeriesHotspot Tools.
Code added after import.
theChart[x].Chart.Import.Template.Load(tmpChart);
int numSeries = theChart[x].Chart.Series.Count; //Set eventhandlers for
imported charts
for (int y = numSeries - 1; y >= 0; y--)
{
Steema.TeeChart.Styles.Series s = theChart[x].Chart.Series[y];
s.GetSeriesMark += new
Steema.TeeChart.Styles.Series.GetSeriesMarkEventHandler(fl_GetSeriesMark);
s.AfterDrawValues += new
Steema.TeeChart.PaintChartEventHandler(fl_AfterDrawValues);
}
Zoom in one chart, the other chart appears the zoomed chart does not. Do
another post-back zoomed appears correctly.
"Narcís Calvet" wrote in message
news:2zqm2oY3HHA.2556@TEEPC.Steema.local...
> Hi Karl,
>
> I'm not sure about the exact problem you are having but please notice that
> TeeChart events are not saved when exporting/importing a chart. You should
> reassign them after having imported the chart.
>
> Hope this helps!
>
>
> --
> Best Regards,
>
> Narcis Calvet
> Steema Support Central
> http://support.steema.com
>
> "Important note: If you are a TeeChart registered customer, please post
> your
> support questions at Steema's Support monitored Forums for customers:
> http://support.steema.comom for a prompter reply."
>
>
> Karl Mikesell wrote:
>> Help getting zoom and mouseover to work together?
>>
>> Initialize two chart tools:
>>
>> Steema.TeeChart.Tools.ZoomTool zt = new
>> Steema.TeeChart.Tools.ZoomTool(theChart.Chart);
>>
>> Steema.TeeChart.Tools.SeriesHotspot sHs = new
>> Steema.TeeChart.Tools.SeriesHotspot(theChart.Chart);
>>
>> sHs.GetHTMLMap += new
>> Steema.TeeChart.Tools.SeriesHotspotEventHandler(seriesHotspot1_GetHTMLMap);
>>
>> sHs.MapAction = Steema.TeeChart.Styles.MapAction.Script;
>>
>>
>>
>> void seriesHotspot1_GetHTMLMap(Steema.TeeChart.Tools.SeriesHotspot
>> sender, Steema.TeeChart.Tools.SeriesHotspotEventArgs e)
>>
>> {
>>
>> e.PointPolygon.IncludePolygon = false;
>>
>> }
>>
>> This event will fire when chart is populated with data. As a result
>> of these events being cancelled none of the MAP AREA are created
>> (correct behavior).
>>
>> Zoom works, but the resulting imported chart from above (Post-back) now
>> contains the MAP AREA and the seriesHotspot1_GetHTMLMap never
>> fires to cancel Polygon. Now page is completely corrupt.
>>
>> onload="registerChart(1,'theChart_0')">