Pointers by code question

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
BerntR
Newbie
Newbie
Posts: 32
Joined: Mon Jul 17, 2006 12:00 am

Pointers by code question

Post by BerntR » Tue Sep 19, 2006 2:18 pm

I want to add seriespointers to series that is generated runtime. I am using this method:


ActiveTarget = Convert.ToInt32(Convert.ToString(tChartTargetDesigner.Series.Add (new Steema.TeeChart.Styles.Line())).Substring(4)) - 1;

And then I can call the subject series using the ActiveTarget as index later on.

But these line series has no Seriespoinnter.

How do I add seriespointer and how do control their properties?

Thanks,

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

Post by Narcís » Tue Sep 19, 2006 2:25 pm

Hi BerntR,

To make line series pointer visible you just need to use something like this:

Code: Select all

      foreach (Steema.TeeChart.Styles.Line s in tChart1.Series)
      {
        s.Pointer.Visible = true;
      }
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

BerntR
Newbie
Newbie
Posts: 32
Joined: Mon Jul 17, 2006 12:00 am

Post by BerntR » Tue Sep 19, 2006 3:19 pm

narcis wrote:Hi BerntR,

To make line series pointer visible you just need to use something like this:

Code: Select all

      foreach (Steema.TeeChart.Styles.Line s in tChart1.Series)
      {
        s.Pointer.Visible = true;
      }

Thanks,

Will this work for adding the seriespointer to the series?

new Steema.TeeChart.Styles.SeriesPointer (tChartTargetDesigner,
tChartTargetDesigner.Series);

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

Post by Narcís » Wed Sep 20, 2006 7:49 am

Hi BerntR,

The code I posted will make the pointer visible for those series which have the pointer feature.
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

BerntR
Newbie
Newbie
Posts: 32
Joined: Mon Jul 17, 2006 12:00 am

Post by BerntR » Wed Sep 20, 2006 9:40 am

The code you posted did the trick for me.

But since I work with series arrays, I need to add pointers to each new series. This works:


new Steema.TeeChart.Styles.SeriesPointer (tChart1.Chart,
tChart1.Series);



Thanks,

Post Reply