Hello why doesn't work nearest point ?

TeeChart for ActiveX, COM and ASP
Post Reply
Nuzur
Newbie
Newbie
Posts: 32
Joined: Thu Nov 03, 2005 5:00 am
Contact:

Hello why doesn't work nearest point ?

Post by Nuzur » Wed Nov 01, 2006 1:41 pm

Do it in this way:

Code: Select all

	m_Chart.GetTools().Add(tcNearest);
	m_Chart.GetTools().GetItems(0).GetAsNearest().SetDrawLine(true);
	m_Chart.GetTools().GetItems(0).GetAsNearest().SetStyle(hsRectangle);
	m_Chart.GetTools().GetItems(0).SetActive(true);
And what I see? Nothing :( What I did wrong?

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Tue Nov 07, 2006 4:26 pm

Hi Nuzur,

have you tried setting the Series where you want to be applied ?
m_Chart.GetTools().GetItems(0).GetAsNearest().SetSeries(....);

Nuzur
Newbie
Newbie
Posts: 32
Joined: Thu Nov 03, 2005 5:00 am
Contact:

Post by Nuzur » Wed Nov 08, 2006 10:57 am

Pep wrote:Hi Nuzur,

have you tried setting the Series where you want to be applied ?
m_Chart.GetTools().GetItems(0).GetAsNearest().SetSeries(....);
What exactly I need use for SetSeries(....) in place of ...
I'd try there position of Series in TeeChart.

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 Nov 08, 2006 4:26 pm

Hi Nuzur,

Here you should use the series you want the tool for, for example:

Code: Select all

m_Chart.GetTools().GetItems(0).GetAsNearest().SetSeries(m_Chart.Series(0));
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

Nuzur
Newbie
Newbie
Posts: 32
Joined: Thu Nov 03, 2005 5:00 am
Contact:

Post by Nuzur » Thu Nov 09, 2006 9:37 am

Like U Said don\t work, but if make some little changes :)

Code: Select all

				m_Chart.GetTools().GetItems(0).GetAsNearest().SetSeries(_variant_t(m_Chart.Series(0))
Thank U now it ok

Post Reply