TeeChart for ActiveX, COM and ASP
-
nbp
- Newbie

- Posts: 83
- Joined: Mon Sep 18, 2006 12:00 am
Post
by nbp » Wed Jan 27, 2010 4:49 pm
I'm deleteing the MarksTips Tool from the list of tools associated with my chart as follows. The MarkTips tool disappears from the list when viewed from the Editor but the MarkTips are still active on the chart. What am I missing?
Code: Select all
if (pChart->GetTools().GetItems(i).GetToolType() == tcMarksTip)
pChart->GetTools().Delete(i);
Thanks
--nbp
-
Yeray
- Site Admin

- Posts: 9645
- Joined: Tue Dec 05, 2006 12:00 am
- Location: Girona, Catalonia
-
Contact:
Post
by Yeray » Thu Jan 28, 2010 3:45 pm
Hi nbp,
Could you please tell us in what exact environment are you seeing this? I've tried the following in a Visual Studio 2008 C++ project and, adding a bar series and a marktips tool at design time and deleting it with the following code, it seems to be deleted correctly:
I've also tried in VB6 and found no problems with:
Could you please send us a simple example project we can run as-is to reproduce the problem here?
Thanks in advance.
-
nbp
- Newbie

- Posts: 83
- Joined: Mon Sep 18, 2006 12:00 am
Post
by nbp » Thu Jan 28, 2010 10:24 pm
I'm using Visual Studio 2008 VC++, TChart v7.0 (ActiveX). I've added the tool to the chart at runtime with the following:
Code: Select all
long nMarksTipNo = pChart->GetTools().Add(tcMarksTip);
Unfortunately, I can't send you the entire project, it's too big.
-
Yeray
- Site Admin

- Posts: 9645
- Joined: Tue Dec 05, 2006 12:00 am
- Location: Girona, Catalonia
-
Contact:
Post
by Yeray » Fri Jan 29, 2010 11:48 am
Hi nbp,
Not your final application because it would probably be difficult for us to run and/or debug it. But, if it is so easy to reproduce, it shouldn't be too much work for you to prepare a new simple example project that reproduces the same behaviour.
Thanks in advance.