GaugeSeriesPointer is not marked as serializable

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
acastro
Advanced
Posts: 204
Joined: Tue Oct 27, 2009 12:00 am

GaugeSeriesPointer is not marked as serializable

Post by acastro » Fri Nov 08, 2013 9:21 am

I have recently upgrade Teechart from a two years old version, and I have this error, in a code which runs before the upgrade.
Thanks
Attachments
gaugeseriesPointer.png
gaugeseriesPointer.png (30.36 KiB) Viewed 7867 times

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: GaugeSeriesPointer is not marked as serializable

Post by Sandra » Fri Nov 08, 2013 4:06 pm

Hello wakeup,

Next code works in correct way for me:

Code: Select all

  Steema.TeeChart.Styles.Line line1;
    Steema.TeeChart.Styles.GaugeSeriesPointer gauge; 
    private void InitializeChart()
    {
      tChart1.Aspect.View3D = false;
     line1 = new Line(tChart1.Chart);
      gauge = new GaugeSeriesPointer(tChart1.Chart, line1);
      line1.FillSampleValues();
      line1.Pointer.Visible = true;
      tChart1.Export.Template.Save(@"C:\test.tmp");
      line1.GetPointerStyle += line1_GetPointerStyle;
      button1.Click += button1_Click;
     }

    void line1_GetPointerStyle(CustomPoint series, GetPointerStyleEventArgs e)
    {
      gauge.Draw(line1.CalcXPos(1), line1.CalcYPos(1), Color.Red); 
    
}

Could you check if my code works for you?

Thanks,
Best Regards,
Sandra Pazos / 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

acastro
Advanced
Posts: 204
Joined: Tue Oct 27, 2009 12:00 am

Re: GaugeSeriesPointer is not marked as serializable

Post by acastro » Fri Nov 08, 2013 4:42 pm

It runs, but try this example project
http://193.145.251.126/pnp/files/Xmutyz ... chart2.zip

Push button1, and then button2. I get the error in button 2.
Thanks

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: GaugeSeriesPointer is not marked as serializable

Post by Sandra » Mon Nov 11, 2013 12:20 pm

Hello wakeup,

Thanks for extra information. I can reproduce this problem, I have added it in bug list report with number [id90]. We will try to fix it to upcoming versions of TeeChartfor.Net. Remember you can follow the status of the bug in this link.

On the other hand, could you tell us in which version it works fine for you?

Thanks,
Best Regards,
Sandra Pazos / 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

acastro
Advanced
Posts: 204
Joined: Tue Oct 27, 2009 12:00 am

Re: GaugeSeriesPointer is not marked as serializable

Post by acastro » Mon Nov 11, 2013 12:31 pm

My previous version was
TeeChartNET2010VSNET2010_4.0.2010.13053.exe

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: GaugeSeriesPointer is not marked as serializable

Post by Sandra » Mon Nov 11, 2013 12:44 pm

Hi wakeup,

Many thanks.
Best Regards,
Sandra Pazos / 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