Page 1 of 1

Mark pointer disappears

Posted: Tue Jul 26, 2005 11:33 pm
by 8128589
I'm trying to add a mark pointer to a fastline series. I open the editor, select my fastline, select "marks", "Arrow", "Pointer" and make it visible. The pointer shows up on the graph, but when I compile and run, no pointer. And then the pointer doesn't even show on the graph at design time.

A similar problem occurs when setting the line color. I set it in the editor, but often times the color gets set back to default. I have had to set the color in my constructor to get around this, but it seems to be a bug.

Any ideas?

Posted: Wed Jul 27, 2005 10:13 am
by narcis
Hi Gp,

Yes, you are right. I've already added this issue to our bug list to be fixed for future releases. In the meantime you can do it programmatically using:

Code: Select all

			fastLine1.Marks.Callout.Visible=true;


Regarding line color problem, it works fine here with latest v1 and v2 releases.

Posted: Wed Jul 27, 2005 4:40 pm
by 8128589
thanks, this works. But I also need to know how to set the mark pointer style, size, position, etc...

Posted: Thu Jul 28, 2005 10:47 am
by narcis
Hi Gp,

You can use:

Code: Select all

			fastLine1.Marks.Callout.Style = Steema.TeeChart.Styles.PointerStyles.Circle;
			fastLine1.Marks.Callout.VertSize=5;
			fastLine1.Marks.Callout.HorizSize=10;
And for custom positioning marks arrows:

Code: Select all

		private void button1_Click(object sender, System.EventArgs e)
		{
			Steema.TeeChart.Styles.SeriesMarks.Position markPosition = tChart1[0].Marks.Positions[0];
			if(markPosition != null ) 
			{ 
				markPosition.ArrowFrom = new Point(100, 100);
				markPosition.Custom = true;
				tChart1[0].Repaint();
			}
		}